问题
The TypeScript package contains interface definitions for Node.js and jQuery. I was wondering if somebody has already wrote definitions for Facebook JavaScript SDK.
回答1:
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)
回答2:
No, not officially produced or supported. But if the community creates one, we would be happy to link to & promote as required.
来源:https://stackoverflow.com/questions/12722039/is-there-a-typescript-interface-definition-for-the-facebook-javascript-sdk