Type declaration file
nathcouret opened this issue ยท 4 comments
Hi,
I would like to use buttercms with Typescript however there is no declaration file available neither here or on DefinitelyTyped.
Would you consider adding a declaration file to enable use with Typescript ? Or is there any workaround ?
Thanks.
edit: As a temporary workaround I created a dummy declaration file. You lose the autocomplete features but it's compatible with typescript.
declare module "buttercms";
Hey @Ataww - thanks for the note. We are reviewing this.
@Ataww We've added support for Typescript. Can you give it a try?
EDIT: TypeScript works perfectly! I just needed to update the version ๐
Thanks for the great node_module
Hi @jakelumetta, we're also using buttercms in our production app over here and are not getting TypeScript types. I do see they exist in this codebase, but I'm not familiar with how Typescript does the resolution within the node_modules
imports, otherwise I would help debug more
Thanks @dawsbot ๐