You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm using "Import post-me as a script" way, on TypeScript. But can't find a built in way to code strong type in TypeScript.
Describe the solution you'd like
I add a new export_post-me.d.ts as:
export * from '../lib/post-me/dist/index';
export as namespace PostMe;
Then I can new PostMe.WindowMessenger() object, or get PostMe.RemoteHandle type.
I suggest post-me to include export as namespace PostMe, and add description in README.md. Let new comer like me spent less time try to find the right way.
Describe alternatives you've considered
I have no other way to make post-me strong type, except any. If you have a better way to make TypeScript happy, I'm glad to know. And still hope to add description in README.md too.
Additional context
No.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm using "Import post-me as a script" way, on TypeScript. But can't find a built in way to code strong type in TypeScript.
Describe the solution you'd like
I add a new
export_post-me.d.ts
as:Then I can
new PostMe.WindowMessenger()
object, or getPostMe.RemoteHandle
type.I suggest post-me to include
export as namespace PostMe
, and add description in README.md. Let new comer like me spent less time try to find the right way.Describe alternatives you've considered
I have no other way to make post-me strong type, except
any
. If you have a better way to make TypeScript happy, I'm glad to know. And still hope to add description in README.md too.Additional context
No.
The text was updated successfully, but these errors were encountered: