Skip to content
New issue

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

Fix TypeScript typings #60

Merged
merged 1 commit into from
Nov 11, 2020
Merged

Fix TypeScript typings #60

merged 1 commit into from
Nov 11, 2020

Conversation

RDIL
Copy link
Contributor

@RDIL RDIL commented Nov 5, 2020

Fixes #52

@RDIL RDIL mentioned this pull request Nov 11, 2020
@IonicaBizau IonicaBizau mentioned this pull request Nov 11, 2020
@IonicaBizau IonicaBizau merged commit eab0019 into IonicaBizau:master Nov 11, 2020
@RDIL RDIL deleted the patch-1 branch November 11, 2020 15:16
@RDIL
Copy link
Contributor Author

RDIL commented Nov 11, 2020

Thanks!

@mjomble
Copy link
Contributor

mjomble commented Dec 17, 2020

With TypeScript 4.1.3, anser 2.0.0 works fine.

But anser 2.0.1 causes these errors in my project:

node_modules/anser/lib/index.d.ts:39:1 - error TS2309: An export assignment cannot be used in a module with other exported elements.

 39 export = class Anser {
    ~~~~~~~~~~~~~~~~~~~~~~
 40     /**
    ~~~~~~~
... 
181     processChunk (text: string, options?: AnserOptions, markup?: boolean): string;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
182 }
    ~

node_modules/anser/lib/index.d.ts:39:16 - error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context.

39 export = class Anser {
                  ~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bogus typings
3 participants