ts-simple-type icon indicating copy to clipboard operation
ts-simple-type copied to clipboard

Relationship type checker functions for Typescript types.

Results 18 ts-simple-type issues
Sort by recently updated
recently updated
newest added

The Type `{ toUpperCase: () => string; } | undefined` should be assignable the value `''`, but when I get a type like the aforementioned type using `checker.getTypeAtLocation(node)` and then...

And compare them for assignability. (Notice the commented out function test case.) Hope this looks OK! I'm new to this.

Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.2 to 3.1.4. Release notes Sourced from semver-regex's releases. v3.1.4 Backport of ReDoS fix https://github.com/sindresorhus/semver-regex/commit/7712ba564d40da101cf2b2b33e6a910d9f2f57f4 Commits 906cf40 3.1.4 7712ba5 Fix ReDoS vulnerability backport a0203db Fix ReDoS vulnerability...

dependencies

Reproduction ```ts import test from "ava"; import { isAssignableToValue, toSimpleType } from "../src"; import { Project } from "ts-morph"; import * as ts from "typescript"; function getType(source: string): [ts.Type, ts.TypeChecker]...

#78 I added a ts-morph as a dependency to make it easier to write my test.

The SimpleType of RegExp is: ``` { kind: 'INTERFACE', members: [ { name: 'exec', optional: false, modifiers: [], type: [Object] }, { name: 'test', optional: false, modifiers: [], type: [Object]...

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

The [lib/index.cjs.js](https://unpkg.com/[email protected]/lib/index.cjs.js) artifact has a direct dependency on `typescript` (see line 3), which means this should have a direct dependency on `typescript`, instead of dev dependency. The problem is manifest...

Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=normalize-url&package-manager=npm_and_yarn&previous-version=4.5.0&new-version=4.5.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) Changelog Sourced from glob-parent's changelog. 5.1.2 (2021-03-06) Bug Fixes eliminate ReDoS...

dependencies