Skip to content

Commit

Permalink
chore: fix ts-ignore in tests for invalid types
Browse files Browse the repository at this point in the history
these were silently passing in older typescript but newer typescript is
better at finding incorrect things
  • Loading branch information
mikehardy committed Dec 19, 2024
1 parent 55d15db commit fc9c524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/react-native/reference/Interface.NativeError.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Error message

#### Defined in

node\_modules/typescript/lib/lib.es5.d.ts:1053
node\_modules/typescript/lib/lib.es5.d.ts:1076

***

Expand Down Expand Up @@ -90,4 +90,4 @@ The native returned error message, different per platform

#### Defined in

node\_modules/typescript/lib/lib.es5.d.ts:1055
node\_modules/typescript/lib/lib.es5.d.ts:1078
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ describe('Validate Trigger', () => {
});

test('throws an error if trigger type is unknown', () => {
// @ts-ignore
const trigger: Trigger = {
// @ts-ignore
type: -1,
};

Expand Down Expand Up @@ -88,6 +88,7 @@ describe('Validate Trigger', () => {
const trigger: TimestampTrigger = {
type: TriggerType.TIMESTAMP,
timestamp: date.getTime(),
// @ts-ignore
repeatFrequency: 3,
};

Expand Down

0 comments on commit fc9c524

Please sign in to comment.