AI Wisdom

Tag

typescript

7 articles tagged with “typescript”

A/B-testinga-starA2AACRadaptive-thinkingagent-observabilityagent-patternsagent-protocolsagent-securityagent-skillsagentsAGENTS.mdaggregationaiai-gatewayAI-SearchaksalertingAlertmanageralgorithmsAnthropicAnthropic-APIAPEapi-designapi-gatewayAPI-providersapi-versioningapimAPMapp-routerapp-serviceappsecarchitectureArizearm-templatesASP.NET-Coreaspnet-coreaspnetcoreassertion-functionsassertsasyncauditauthenticationauthorizationAutoGenautomationazureAzure-APIMazure-content-safetyazure-front-doorazure-functionsAzure-OpenAIazure-policyazure-storagebatch-APIbddbeam searchBedrockbenchmarksbest-practicesbfsbi-encoderbias-detectionbicepbinary-searchbranchingbstBundlercache-componentscachingcap-theoremcapability-taggingCapitalizecascadingcase-based-reasoningchain-of-thoughtchartschatbotcheckpointingchunkingCIci-cdci-optimizationcicdclass-decoratorClaudeClaude-CodeCLAUDE.mdclean-architecturecloudcloud-securitycloudeventscode-reviewCodexcoding-agentscompactioncomparisoncompilerOptionscompliancecomposeconcurrencyconcurrent-renderingconditional-typesconsistencyconsistent-hashingconstrained-generationconstraintsconsumer-drivencontainer-registrycontainerscontent-moderationcontent-safetycontextcontext-compressioncontext-engineeringcontext-windowcontract-testingconversational-agentsCopilotcosmos-dbcost-allocationcost-controlcost-optimizationcost-per-taskcost-performanceCoTcoveragecqrscross-sessioncsharpCursorcvecypress.d.tsdapperdashboardsdastdata-fetchingdatabasesdataloaderdatasetsddddecision-frameworkdeclaration-filesdecoratorsDeepEvalDefinitelyTypeddependency-injectiondependency-scanningdeployment-slotsdeploymentsdeprecationdesign-patternsdevopsdfsdijkstradiscriminated-unionsdistributed-tracingdistributivedockerDocker-HubdocumentationDORAdotnetdotnet-9drift-detectionDSPydurable-executiondynamic-discoverydynamic-programminge2e-testingedge AIef-coreef-core-9embeddingsengineeringenvironmentsepisodic-memoryerror-budgetevalsevaluationevent-drivenevent-gridevent-hubseventingexamplesexperience-replayexperimentalDecoratorsfactualityfail-fastfaithfulnessfeature-flagsfederationfew-shotfiberfine-tuningFinOpsflaky-testsflex-consumptionfrontendfunction-callinggarakGeminiGemmagen-ai-semantic-conventionsgenericsGHCRgitGitFlowGitHubgithub-actionsgoal-decompositiongolden-signalsGoogle-DeepMindGPTgpt-4oGPT-6GPUgrammargraphgraphqlGroqgroundingGroupChatgrpcguardrailshallucinationhallucination-detectionharmful-contentharness-engineeringhclhealth-checksheapHelmhookshotchocolateHPAhttphttp2http3hybridcacheiacICLidempotencyidentityimage-scanningin-context-learningincident-responseindexesinferinferenceinfrastructureinput-validationintegrationintegration-testinginteroperabilityintrosortinvariantisolationIstiojailbreakjestjoinsjotaiJSONJSON-modejsonbjwtk8skey-remappingkey-vaultkiotaknapsackknowledge-baseKQLkubernetesKV cacheLangChainLangfuseLangGraphLangSmithlanguagelatencyleast-agencylegacy-codeLinkerdlinqLlamallama.cppLLMLLM-as-judgeLLM-monitoringLLM-securityload-balancinglogginglong-running-agentslong-term-memorylost-in-the-middlelower-boundmanaged-identitymapped-typesmaterialized-viewsMCPmemoizationmemorymemory-consolidationmergemessage-queuemessagingmeta-promptingmetadatametricsmicroservicesmicrosoftminimal-apisMistralmockingmocksModel-Context-Protocolmodel-routingmodel-selectionmodel-servingmoderationmodule-augmentationmodule-resolutionmodulesmongodbmonitoringmonorepomswMTEBmTLSmulti-agentmulti-stage-buildsmulti-tenantmultimodalmvccnarrowingnetwork-securitynextjs-16Node16normalizationnosqloauthoauth2observabilityoffline-evalsoidcOmiton-callon-deviceonline-evalsopaopen-sourceopen-weightOpenAIOpenAI-APIopenapiOpenTelemetryOPROorchestrationOTELOutlinesoutput-formatoutput-validationOWASPP99paaspackage-exportspactpactflowpage-objectsPagerDutyparsingPartialpartitioningpathspattern-matchingperformancepersonal-AIpgvectorPhiPhoenixPickPIIPII-filteringpineconepipelineplanningplaywrightpluginspolicy-as-codepollypostgresqlpricingproductionproduction-monitoringprogressive-disclosureproject-referencesprompt-cachingprompt-designprompt-engineeringprompt-injectionprompt optimisationpromptfooprotobufpulumipythonQdrantqualityquality-gatesquality-scorequantizationqueuesRAGRAG-evaluationRAGASrate-limitingreactreact-19react-compilerreact-internalsreact-queryreact-server-componentsrealtimereasoningreasoning-effortRecordrecursionrecursive-typesred-blackred-green-refactorred teamingredisreflectionregression-testingrelease-managementreplanningresource-limitsResponses-APIrestreusable-workflowsrlsrolling-updatesruntime-safetysaga-patternsandboxingsastsbomscaleschemaschema-designschema-validationSDKsdlcsearchsecrets-managementsecuritysecurity-testingself-consistencyself-hostingSemantic-Kernelsemantic-similarityserializableserver-actionsserverlessservice-busservice-meshshardingshortest-pathsidecar-proxysignalrSKILL.mdSLISLMSLOslopsquattingsnapshot-testingsoftware-designsortingspec-driven-developmentspeculative-decodingspiessqlstabilitystate-graphstate-managementstreamingstreamsstrict-modestridestring-typesstructured-loggingstructured-outputstubssummarisationsupertestsupply-chainsystem-designtail-calltanstack-querytask-framingTC39tddtemplate-literalstemplatesterraformtest-architecturetest-doublestest-pyramidtestcontainerstestingtesting-patternstesting-strategythreat-modelingtoken-buckettoken-budgettoken-economicstoken-limittoken-maskingtoken-trackingtokenstokens-per-secondtool-callingtool-registrytool-usetopological-sortToTtoxicitytracingtrajectorytransactionstree-of-thoughttreestrietrunk-basedtsconfigTTFTtype-guardstype-narrowingtype-predicatestype-safe-routestype-systemtype-transformstypestypescriptunit-testingusage-metricsuser-feedbackutility-typesvalidationvalkeyvaluesvaultvector-dbvector-searchvector-storevendor-neutralverificationversion-controlversioningVertex-AIvisual-regressionvitestvLLMvoice-agentsvulnerabilitiesweaviateweb-apiweb-securityWebLLMwebsocketswindow-functionsWindsurfwiremockworkflowsworking-memoryworkload-identityworkspacesxunityarpzero-shotzero-trustzodzustand
Infrastructure as Code
TypeScript teamindex.tsPulumi engineAzureJest tests

Pulumi with TypeScript: Type-Safe Infrastructure

Intermediate

Pulumi TypeScript SDK — type-safe resources, async outputs, stack references, and testing infrastructure with Jest.

Updated 15 min
Read →
TypeScript Deep Dive
TypeScript generics that mean something: a type parameter must relate inputs to outputs, so fetchJson takes a schema and infers T from it instead of letting callers name any type; constraints and const type parameters keep helpers precise.TypeScript generics that mean something: a type parameter must relate inputs to outputs, so fetchJson takes a schema and infers T from it instead of letting callers name any type; constraints and const type parameters keep helpers precise.

TypeScript Generics: Constraints, Variance, and Inference

Intermediate

Type parameters, constraints, conditional inference, and the patterns that make generics actually useful in production TypeScript.

Updated 14 min
Read →
TypeScript Deep Dive
Deriving types from one source: an Order type produces the list item with Pick, the create payload with Omit, the update payload with Pick plus Partial so the id stays required, and status labels with an exhaustive Record.Deriving types from one source: an Order type produces the list item with Pick, the create payload with Omit, the update payload with Pick plus Partial so the id stays required, and status labels with an exhaustive Record.

TypeScript Utility Types: The Production Toolkit

Intermediate

Partial, Required, Pick, Omit, Record, Extract, Exclude, ReturnType — when to use each and how to compose them for real-world type transformations.

Updated 13 min
Read →
TypeScript Deep Dive
Narrowing a payment status union: a switch on the literal status narrows each branch, a never check in the default breaks the build when a new status is added, custom predicates check every field, and catch blocks treat errors as unknown.Narrowing a payment status union: a switch on the literal status narrows each branch, a never check in the default breaks the build when a new status is added, custom predicates check every field, and catch blocks treat errors as unknown.

TypeScript Type Guards: Narrowing Without the Noise

Intermediate

typeof, instanceof, in, discriminated unions, custom type predicates, and assertion functions — the narrowing toolkit that keeps runtime errors out of production.

Updated 12 min
Read →
TypeScript Deep Dive
Parsing untrusted data with Zod 4: a schema defines the shape and the TypeScript type is inferred from it, safeParse checks partner responses and request bodies at the boundary, invalid input returns 400 or a fallback, and environment variables are validated at startup.Parsing untrusted data with Zod 4: a schema defines the shape and the TypeScript type is inferred from it, safeParse checks partner responses and request bodies at the boundary, invalid input returns 400 or a fallback, and environment variables are validated at startup.

Zod: Schema-First Validation That Earns Its Type Safety

Intermediate

Parse API responses, form inputs, and env variables with Zod schemas that double as TypeScript types — no more manual type assertions at system boundaries.

Updated 14 min
Read →
TypeScript Deep Dive
Conditional types let a return type follow its input: getOrder returns lines only when include is passed, infer extracts element types, wrapping in brackets stops unwanted distribution over unions, and overloads are used when simpler.Conditional types let a return type follow its input: getOrder returns lines only when include is passed, infer extracts element types, wrapping in brackets stops unwanted distribution over unions, and overloads are used when simpler.

TypeScript Conditional Types: Type-Level Logic That Scales

AdvancedPRO

Conditional types, the infer keyword, distributive behaviour, and recursive types — the foundation of every advanced TypeScript utility.

Updated 15 min
Read →
TypeScript Deep Dive
Mapped types derive parallel shapes from a checkout model: per-field errors, touched flags and renamed change handlers through key remapping, plus a DeepPartial that stops at dates and arrays, all covered by type tests.Mapped types derive parallel shapes from a checkout model: per-field errors, touched flags and renamed change handlers through key remapping, plus a DeepPartial that stops at dates and arrays, all covered by type tests.

TypeScript Mapped Types and Template Literals: Transforming Shapes at the Type Level

AdvancedPRO

Mapped types, key remapping, template literal types, and combining them with conditional types to build transformation layers with zero runtime cost.

Updated 14 min
Read →