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

TS2769: No overload matches this call. #65

Open
HaTiIn opened this issue Oct 17, 2022 · 1 comment
Open

TS2769: No overload matches this call. #65

HaTiIn opened this issue Oct 17, 2022 · 1 comment

Comments

@HaTiIn
Copy link

HaTiIn commented Oct 17, 2022

Hi,

there seems to be an issue with type definition:

Overload 1 of 2, '(attrs?: CertificateField[], opts?: SelfsignedOptions): GenerateResult', gave the following error.
    Type 'true' is not assignable to type 'undefined'.
  Overload 2 of 2, '(attrs?: CertificateField[], opts?: SelfsignedOptions, done?: (err: Error, result: GenerateResult) => any): void', gave the following error.
    Type 'true' is not assignable to type 'undefined'.

I would expect index.d.ts line 32: clientCertificate?: undefined
to be clientCertificate?: boolean
Furthermore the SelfsignedOptions interface seems to miss the keyPair attribute.

Best regards,
Hans

@OliverHenrichs
Copy link

OliverHenrichs commented Aug 5, 2024

Bump;
KeyPair is still not an attribute of interface SelfsignedOptions in the index.d.ts even though it's advertised to be used (and is used in the Javascript-Code).
image

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

No branches or pull requests

2 participants