We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dear,
When importing the lib in typescript: import { encode as windows1257Encode } from 'windows-1257
import { encode as windows1257Encode } from 'windows-1257
We get error below:
TS1038: A 'declare' modifier cannot be used in an already ambient context.
This is because we've got nested declare
declare module 'windows-1257' { // [...] export declare function encode( text: string, options?: EncodeOptions ): Uint16Array; // [...] }
This prevents from using the library in Typescript
Open issue in 1252 mathiasbynens/windows-1252#10
1251: mathiasbynens/windows-1251#3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Dear,
When importing the lib in typescript:
import { encode as windows1257Encode } from 'windows-1257
We get error below:
This is because we've got nested declare
This prevents from using the library in Typescript
Open issue in 1252
mathiasbynens/windows-1252#10
1251:
mathiasbynens/windows-1251#3
The text was updated successfully, but these errors were encountered: