Typeform/js-api-client

Add types for Typescript

rorhug opened this issue ยท 1 comments

Description

Add typescript types to this library.
Preferably in the form of a built in .d.ts file or otherwise as a separate @types/typeform package.

Context

In #25, @MichaelSolati pushed a complete rewrite of the library.

Rather than changing the current codebase, a type definition of the current API would be more than adequate!
It would benefit Typeform's API ecosystem, current and potential developers to have a strict, public type definition of the API.

Possible Solution

Breifly looking at src, it seems this library isn't automatically generated based of a spec (correct me if i'm wrong).
The README is well defined though. Assuming there's some sort of internal definition for the backend, it could be useful to manually or automatically generate the type surface.

Current Solution

//@ts-ignore ... ๐Ÿ˜’
import { createClient } from '@typeform/api-client'

๐ŸŽ‰ This issue has been resolved in version 1.5.2 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€