560 blogs tracked7,114 posts indexed

#typescript

26 posts · 7 companies · newest first

Curated view of this subject:Topic: TypeScript64
1

Trigger Pulumi Agents from Infrastructure Events (opens on the source site)

Pulumi Agents can start work automatically in response to a Pulumi event or a webhook. With a trigger, you can give an agent a recurring assignment and choose when it should start. For events in Pulumi Cloud, that choice can be as specific as a failed update on a single stack. A failed deployment is one use for a trigger. The agent can read the failed update, identify the affected resource, and post a diagnosis in Slack. That puts the error and a suggested next step in the deployment channel for the team to review. A trigger for failed deployments The example below defines an agent and a…

ai-agentstypescriptexcerpt only · body stays at the source
From the web
2

Branded Phone Type (opens on the source site)

In my previous blog post Branded Types I have shown a useful technique for representing time durations as "branded types" which removes the confusion between seconds and milliseconds. 1 2 3 4 // value is in seconds const duration = 1 // oops, I thought the duration was in milliseconds cy.wait(duration) Let me show an other example: representing user phone numbers using branded types. This solves a common problem in end-to-end tests where the system has to verify the user to avoid scammers: 1 2 3 4 // are these numbers the same? const phoneNumber1 = '+1 (123) 456-7890' const phoneNumber2 =…

processtestingexcerpt only · body stays at the source
From the web
3

Announcing TypeScript 7.1 Beta (opens on the source site)

Today we’re excited to announce the beta release of TypeScript 7.1! npm install -D typescript@beta Let’s take a look at what’s new in TypeScript 7.1! Support for Import Attributes in Ambient Modules Import attributes are metadata that are attached to import statements. Typically, they’re meant to instruct runtimes and bundlers on how to interpret the […] The post Announcing TypeScript 7.1 Beta appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
4

Self-driving infrastructure with Pulumi and Jev (opens on the source site)

It’s been a weirdly great time to be building software. We’ve never had so many tools that help us get things done: endless cloud providers, regions, deployment frameworks, and now AI agents that can actually build and manage infrastructure for us. That’s part of what made this past week feel so big. TypeSafe AI opened early access to Jev, their SystemOne model, and we here at Pulumi were bitten by the excitement bug and got straight to work building. Almost immediately we were able to whip up some test agentic workflows that were making real, live decisions about infrastructure. If you’re…

ai-agentsautomation-apiexcerpt only · body stays at the source
From the web
5

Incident Response as Code: Managing PagerDuty with Pulumi (opens on the source site)

You usually find out in the postmortem: the alarm fired, but it paged a schedule nobody was on anymore. Or the service had been running in production for three months before anyone created the matching PagerDuty service, so the first person to notice the outage was a customer. The infrastructure was code, reviewed and versioned. The incident response setup was forty clicks in a web UI, done once, by someone who has since changed teams. PagerDuty’s own engineering team has been making the case for managing PagerDuty as code for years, and the OneUptime folks recently published a hands-on guide…

pagerdutyawsexcerpt only · body stays at the source
From the web
6

Announcing TypeScript 7.0 (opens on the source site)

Today we are proud to announce the availability of TypeScript 7, a 10x faster native port of TypeScript! Since its early days, TypeScript has promised to deliver on JavaScript that scales. By bringing strong type-checking and rich tooling to the world of JavaScript, TypeScript made it possible to build non-trivial high-quality apps across platforms. Last […] The post Announcing TypeScript 7.0 appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
7

Announcing TypeScript 7.0 RC (opens on the source site)

Today we are excited to announce the Release Candidate of TypeScript 7.0! If you haven’t been following TypeScript 7.0’s development, this release is significant in that it is built on a completely new foundation. Over the past year, we have been porting the existing TypeScript codebase from TypeScript (as a bootstrapped codebase that compiles to […] The post Announcing TypeScript 7.0 RC appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
8

Upgrade Cypress To TypeScript v6 (opens on the source site)

Finally, it has happened. Cypress v15.14 supports TypeScript v6. This is a big deal - TypeScript v6 is the last step before TypeScript v7 which is implemented in Go and is much faster. By the way, you can try TypeScript v7 beta today. So what do you need to switch your projects to use TS v6 with Cypress? It is pretty straightforward: check out the TypeScript v6 changes, for example this is a good summary switch module resolution from "node" to "bundler" and let Cypress use WebPack to bundle the transpiled code 1 2 3 4 5 6 { "compilerOptions": { - "moduleResolution": "node", +…

productscypressexcerpt only · body stays at the source
From the web
9

Announcing TypeScript 7.0 Beta (opens on the source site)

Today we are absolutely thrilled to announce the release of TypeScript 7.0 Beta! If you haven’t been following TypeScript 7.0’s development, this release is significant in that it is built on a completely new foundation. Over the past year, we have been porting the existing TypeScript codebase from TypeScript (as a bootstrapped codebase that compiles […] The post Announcing TypeScript 7.0 Beta appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
11

Announcing TypeScript 6.0 (opens on the source site)

Today we are excited to announce the availability of TypeScript 6.0! If you are not familiar with TypeScript, it’s a language that builds on JavaScript by adding syntax for types, which enables type-checking to catch errors, and provide rich editor tooling. You can learn more about TypeScript and how to get started on the TypeScript […] The post Announcing TypeScript 6.0 appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
12

String Types For E2E Tests (opens on the source site)

Every individual item sold on Mercari.com has an id that looks like m<number>. The item's id is visible in the URL, for example www.mercari.com/us/item/m73702188949/. If you buy several items from the same seller, you get a discount because you buy it as a bundle. Every bundle has its own unique id that looks like b<number>. Both ids are strings, yet they have a certain format that differs. In our tests we don't want to be confused which type we are passing: is it an item id; a bundle id; a random string we pass as id by mistake? Here is where TypeScript string template literal types come in…

processtestingexcerpt only · body stays at the source
From the web
13

Announcing TypeScript 6.0 RC (opens on the source site)

Today we are excited to announce the Release Candidate (RC) of TypeScript 6.0! To get started using the RC, you can get it through npm with the following command: npm install -D typescript@rc TypeScript 6.0 is a unique release in that we intend for it to be the last release based on the current JavaScript […] The post Announcing TypeScript 6.0 RC appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
14

Announcing TypeScript 6.0 Beta (opens on the source site)

Today we are announcing the beta release of TypeScript 6.0! To get started using the beta, you can get it through npm with the following command: npm install -D typescript@beta TypeScript 6.0 is a unique release in that we intend for it to be the last release based on the current JavaScript codebase. As announced […] The post Announcing TypeScript 6.0 Beta appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
15

How To Type Function Mocha Context With Cypress Aliases (opens on the source site)

In Cypress you can save values under aliases which is pretty handy. You can get the aliased value using the cy.get, or by using a cy.then(function () { ... }) callback, or (my favorite solution) using the alias in the next hook or test callback via this.[alias] property 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 beforeEach(() => { cy.wrap(42).as('answer') // later in the same code cy.get('@answer') .should('equal', 42) // alternative 1: cy.then(callback) cy.get(...) .then(function () { // we can access the aliased value expect(this.answer, 'answer').to.equal(42) }) }) // alternative 2 //…

productscypressexcerpt only · body stays at the source
From the web
16

Branded Types (opens on the source site)

Let's say you need to specify a timeout or wait in your end-to-end Cypress tests. You would use milliseconds 1 2 3 4 // try finding the "selector" elements for up to 1 second cy.get('selector', { timeout: 1_000 }) // then wait for 5 seconds .wait(5_000) For clarity, you could write a helper to convert seconds into milliseconds 1 2 3 4 const seconds = (n) => n * 1000 cy.get('selector', { timeout: seconds(1) }) .wait(seconds(5)) What happens if you accidentally forget the seconds(...) call? You still get a spec that passes your linter 1 2 3 4 5 const seconds = (n) => n * 1000 // oops, GET has a…

processtestingexcerpt only · body stays at the source
From the web
17

Progress on TypeScript 7 – December 2025 (opens on the source site)

Earlier this year, the TypeScript team announced that we’ve been porting the compiler and language service to native code to take advantage of better raw performance, memory usage, and parallelism. This effort (codenamed “Project Corsa”, and soon “TypeScript 7.0”) has been a significant undertaking, but we’ve made big strides in the past few months. We’re […] The post Progress on TypeScript 7 – December 2025 appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
18

Announcing TypeScript 5.9 (opens on the source site)

Today we are excited to announce the release of TypeScript 5.9! If you’re not familiar with TypeScript, it’s a language that builds on JavaScript by adding syntax for types. With types, TypeScript makes it possible to check your code to avoid bugs ahead of time. The TypeScript type-checker does all this, and is also the […] The post Announcing TypeScript 5.9 appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
19

Announcing TypeScript 5.9 RC (opens on the source site)

Today we are excited to announce the Release Candidate (RC) of TypeScript 5.9! To get started using the Release Candidate, you can get it through npm with the following command: npm install -D typescript@rc Let’s take a look at what’s new in TypeScript 5.9! Minimal and Updated tsc --init Support for import defer Support for […] The post Announcing TypeScript 5.9 RC appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
20

Announcing TypeScript 5.9 Beta (opens on the source site)

Today we are excited to announce the availability of TypeScript 5.9 Beta. To get started using the beta, you can get it through npm with the following command: npm install -D typescript@beta Let’s take a look at what’s new in TypeScript 5.9! Minimal and Updated tsc --init Support for import defer Support for --module node20 […] The post Announcing TypeScript 5.9 Beta appeared first on TypeScript.

typescriptexcerpt only · body stays at the source
From the web
24

Making sense of TypeScript generics (opens on the source site)

TypeScript significantly improved JavaScript development with enhanced code reliability and maintainability, ensuring fewer runtime errors and greater productivity for developers.But when you start working with it, the syntax can sometimes feel overwhelming.One of the most intimidating features in TypeScript is “generics”. Look at the example below 🤯 aren’t you afraid ?Types declarations from @tanstack/react-query (library) that can feel overwhelmingBut don’t worry, we will go step by step and once you understand generics, you’ll see how powerful they are.The best any alternativeImagine this…

typescriptweb-developmentexcerpt only · body stays at the source
From the web
25

TypeScript magic (opens on the source site)

At Artsy, we love TypeScript. We use it in most of our node/web/mobile repos. Today, I want to talk about a specific case we found while trying to make our types more strict on palette-mobile, which is our Design System for React Native. Check this out: const welp: "hello" | "world" | string // `welp` is of type `string`. Like the comment says, even though we have two specific strings, the fact that we do a union with string, makes welp have a type of just string. This is because both "hello" and "world" are strings, and the union tends to go to the type that includes the most. Think of set…

palettetoolsexcerpt only · body stays at the source
From the web
26 shown

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.