Basarat Ali Syed

Results 54 issues of Basarat Ali Syed

There are three kinds of commands: ``` // -- This is a parent command -- // Cypress.Commands.add("login", (email, password) => { ... }) // // // -- This is a...

List of known types like `Record` / `Partial` etc: - [`Partial`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1401-L1406) - Make all properties in `T` optional. - [`Required`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1408-L1413) - Make all properties in `T` required. - [`Readonly`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1415-L1420) -...

# Record Record allows you to create simple object bag definitions taking in two generic arguments (key and value). As an example, at a simple level `Record` is same as...

Reference : https://stackoverflow.com/a/54797034/390330 :rose:

https://github.com/Microsoft/TypeScript/pull/21919

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#new-unknown-top-type

Courtesy : @Rebvado :rose: * SETUP ONCE (app code): In your application code store `appState` on window when running under cypress. ```ts export const appState = new AppState(); if ((global...

`cy.then` is not the same as a promise then, so don't use it with [async/await](https://github.com/cypress-io/cypress/issues/1417). The key usecase for `then` is to inject synchronous code *into* the cypress command execution...

https://basarat.gitbooks.io/typescript/content/docs/jsx/react.html

In type space using `type` e.g. ```ts type Foo = {foo: T} type Bar = Foo; ``` In variables space (investigating): ```ts // A function that takes argument of type...