typescript-is icon indicating copy to clipboard operation
typescript-is copied to clipboard

Results 49 typescript-is issues
Sort by recently updated
recently updated
newest added

```typescript import { is } from 'typescript-is'; interface IUser { name: string; } let user1: IUser = { name: 'Hello' }, user2: IUser = {} as IUser; if (is(user1) &&...

"This library will not check classes. Instead, you are encouraged to use the native instanceof operator." Wouldn't it be easy to have this library generate the instanceof code? What's the...

May javascript applications use [joi](https://www.npmjs.com/package/joi) to validate wild/untyped inputs. It would be great if this project had a way to produce one of those as an alternative to the predicate...

TypeScript 3.7 introduces the assert keyword https://github.com/microsoft/TypeScript/pull/32695, it allows code to be written this way: ```typescript import { assertType } from 'typescript-is'; try { assertType(object); // No need to reassign...

Hey @woutervh-. Looks like [we're both working on similar tools](https://github.com/usabilityhub/ts-auto-guard). I would have emailed you privately but I can't find your contact details. Maybe it would make sense to work...

Hi! This one is a big ask, but I want to know if it is in the works at all. Currently, this is what my webpack loaders setup looks like:...

Input: ```ts import { createIs } from 'typescript-is'; export const enum MyEnum { Alpha = 'alpha', Bravo = 'bravo', Charlie = 'charlie', Delta = 'delta', Echo = 'echo', Foxtrot =...

The result of attempting running `ttsc` with `typescript-is` on TypeScript 4.8.2: ```bash DeprecationWarning: 'createIdentifier' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by...

Bumps [flat](https://github.com/hughsk/flat) to 5.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `flat` from 4.1.0 to 5.0.2 Commits e5ffd66 Release 5.0.2 fdb79d5 Update dependencies, refresh...

dependencies