Is there a TypeScript interface definition for the

2020-07-13 22:52发布

The TypeScript package contains interface definitions for Node.js and jQuery. I was wondering if somebody has already wrote definitions for Facebook JavaScript SDK.

2条回答
迷人小祖宗
2楼-- · 2020-07-13 23:34

No, not officially produced or supported. But if the community creates one, we would be happy to link to & promote as required.

查看更多
Luminary・发光体
3楼-- · 2020-07-13 23:42

You can get it with tsd by typing tsd install fbsdk --save. Here it is in Definitely Typed: https://github.com/borisyankov/DefinitelyTyped/blob/master/fbsdk/fbsdk.d.ts

(From this answer)

查看更多
登录 后发表回答