Skip to content

Commit

Permalink
use ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Jan 5, 2025
1 parent 3c2637c commit bf2d50a
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
!install_script.sh
!LICENSE
!LICENSE_EXTENSION.md
!modules.d.ts
!NOTICE
!package-lock.json
!package.json
Expand Down
1 change: 0 additions & 1 deletion modules.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/experimental/globals.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './experimental';
import '../stable/globals'; // We import this to remove type errors having to do with the stable and experimental globals

// @ts-expect-error
// @ts-ignore
import { TextDecoder, TextEncoder } from '@sinonjs/text-encoding';
import { Buffer } from 'buffer';
import * as process from 'process';
Expand Down
1 change: 1 addition & 0 deletions src/lib/stable/globals.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { TextDecoder, TextEncoder } from '@sinonjs/text-encoding';

import { AzleIcExperimental } from '../experimental/ic/azle_ic_experimental';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stable/ic_apis/reject_code.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// TODO this should be removed once https://github.com/demergent-labs/azle/issues/2271 is resolved
// @ts-expect-error
// @ts-ignore
import { TextDecoder, TextEncoder } from '@sinonjs/text-encoding';
globalThis.TextDecoder = TextDecoder;
globalThis.TextEncoder = TextEncoder;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stable/stable_structures/stable_json.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Principal } from '@dfinity/principal';
// @ts-expect-error
// @ts-ignore
import { TextDecoder, TextEncoder } from '@sinonjs/text-encoding';

import { Serializable } from './stable_b_tree_map';
Expand Down

0 comments on commit bf2d50a

Please sign in to comment.