synacor / preact-i18n

Simple localization for Preact.
BSD 3-Clause "New" or "Revised" License
205 stars 18 forks source link

Add useText to Type declarations #51

Open ddruker opened 3 years ago

ddruker commented 3 years ago

Currently, TS linter is throwing an error. It would be great for the Type definitions to include a type for the new hook.

pl12133 commented 3 years ago

Is this still an issue? I see types added to @types/preact-i18n:

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/d73fdfc3ff6aed8f47bd4092ada9623bcc1f4fe8/types/preact-i18n/index.d.ts#L54-L56