Skip to content

Commit

Permalink
Add BigInt support to the Primitive and TypedArray type
Browse files Browse the repository at this point in the history
Closes #25
  • Loading branch information
sindresorhus committed May 12, 2019
1 parent 22c3a99 commit aacf829
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions source/basic.d.ts
Expand Up @@ -8,7 +8,8 @@ export type Primitive =
| string
| number
| boolean
| symbol;
| symbol
| bigint;

/**
Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
Expand All @@ -27,7 +28,9 @@ export type TypedArray =
| Int32Array
| Uint32Array
| Float32Array
| Float64Array;
| Float64Array
| BigInt64Array
| BigUint64Array;

/**
Matches a JSON object.
Expand Down
2 changes: 1 addition & 1 deletion test-d/readonly-deep.ts
Expand Up @@ -18,7 +18,7 @@ const data = {
tuple: ['foo'] as ['foo'],
readonlyMap: new Map<string, string>() as ReadonlyMap<string, string>,
readonlySet: new Set<string>() as ReadonlySet<string>,
readonlyArray: ['foo'] as ReadonlyArray<string>,
readonlyArray: ['foo'] as readonly string[],
readonlyTuple: ['foo'] as const
};

Expand Down

0 comments on commit aacf829

Please sign in to comment.