WebReflection / neverland

React like Hooks for lighterhtml
https://medium.com/@WebReflection/neverland-the-hyperhtmls-hook-a0c3e11324bb
ISC License
244 stars 7 forks source link

Add index.d.ts to this project #50

Closed WebReflection closed 4 years ago

WebReflection commented 4 years ago

Both lighterhtml and dom-augmentor have an index.d.ts file so that it should be relatively easy to add one in here that exports all methods from dom-augmentor and specify the extra Hook class which has only self.fn as Function and self.args as Array, used in its own constructor function Hook(fn, args) {}.

As I'm not a TypeScript user, I'd love to have some help in here from whoever uses this library and has interest in defining types for it.

Thanks in advance for anyone helping out.

WebReflection commented 4 years ago

standing ovation for @bigopon who landed types here https://github.com/WebReflection/neverland/pull/51