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

Hi. @woutervh- Are you okay if I submit a PR to add the following feature to the value returned by createAssertType() - see example below: ```ts export interface MyType {...

This check: ```ts import { assertType } from "typescript-is"; type OneOrMore = [string, ...string[]]; const foo = assertType({}); ``` Generates the following code: ```js //... if (!Array.isArray(object) || object.length <...

I had some free time and tried to do the appropriate changes to have custom errorclass per decorator, as requested in #129

Hi. I just found your project, witch is cool, and could let me avoid a lot of manual checks (I have a lot of class autogenerated by .proto files, and...

When I read the generated code it often repeats strings like `"validation failed at "`, `": there are no valid alternatives"`, `": expected an object"` and many more. Putting those...

https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#instantiation-expressions this can probably be used to deprecate the `create` functions. eg. before: ```ts const isString = createIs() if (isString(value)) { //... } ``` after: ```ts const isString = is;...

I supporting https://vitejs.dev something you're interested in? So that users can simply: ```js // vite.config.js import { typescriptIs } from 'typescript-is/vite-plugin' export default { plugins: [typescriptIs] } ```

When using package managers like `pnpm` or `yarn v3` with the `pnpm` linker, the current check for methods that come from this library doesn't work. The reason is that `path.resolve(signature.declaration.getSourceFile().fileName`...

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies