drafts-script-reference icon indicating copy to clipboard operation
drafts-script-reference copied to clipboard

`Todoist.create()` documentation says argument is optional, but type def does not reflect that

Open macintacos opened this issue 3 years ago • 0 comments

Playing around with the Todoist integration for scripting, and my linter in VSCode was yelling at me because of the the following:

CleanShot Code 2022-02-06 at 22 18 52

I think it's because this:

https://github.com/agiletortoise/drafts-script-reference/blob/fcfa91a8bd5c5b9c10f06089fc6e288c32279778/src/Todoist.d.ts#L190-L194

Needs to be:

static create(identifier?: string): Todoist

When I fixed that locally, my linter stopped complaining.

macintacos avatar Feb 07 '22 03:02 macintacos