I am wondering if anyone knows if there is a TypeScript definition file for the SPServices JS library? I have found a .d.ts
file in the GitHub repo but it does not appear to be complete. I have also search (with no luck except this definition request) through what is available on Definitely Typed. If none exists, does anyone know of a good reference for information about how to create definitions from the JS code?
相关问题
- Angular RxJS mergeMap types
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
I didn't find the definition you need. However, you can visit
http://definitelytyped.org/
and read guides for contributing or this quick introduction.
Summary:
.d.ts
file which is then referenced by the special comment/// <reference path="../path/to/file.d.ts" />
in your TypeScript script..d.ts
files is typically written by hand.lib.d.ts
was generated by a script but it is an exception. You can check some projects that try to generate definition files.A complete example of a definition file (amplifyjs.d.ts):