adamkdean / zerossl

ZeroSSL REST API wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong Type in CreateCertificateOptions

ziobob94 opened this issue · comments

Hi, i got an issue on the type of strict domain, the ZeroSSL' API want 0 or 1 but the type definition is

export type CreateCertificateOptions = {
csr: string
domains: string[]
validityDays: 90 | 365

strictDomains: boolean // NEED TO BE AN INTEGER or 0 | 1 type

}

from zerossl docs

https://zerossl.com/documentation/api/create-certificate/