mirror of
https://github.com/demostf/demo.js
synced 2026-06-03 16:44:12 +02:00
initial typescript conversions
This commit is contained in:
parent
564e8995c7
commit
06860cc3fe
12 changed files with 96 additions and 16 deletions
1
typings/index.d.ts
vendored
Normal file
1
typings/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/// <reference path="modules/clone/index.d.ts" />
|
||||
28
typings/modules/clone/index.d.ts
vendored
Normal file
28
typings/modules/clone/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
// Generated by typings
|
||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/337587de8c13868283993bfacdcdd1a0f3291e7f/clone/index.d.ts
|
||||
declare module 'clone' {
|
||||
// Type definitions for clone 0.1.11
|
||||
// Project: https://github.com/pvorb/node-clone
|
||||
// Definitions by: Kieran Simpson <https://github.com/kierans/DefinitelyTyped>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/**
|
||||
* See clone JS source for API docs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param val the value that you want to clone, any type allowed
|
||||
* @param circular Call clone with circular set to false if you are certain that obj contains no circular references. This will give better performance if needed. There is no error if undefined or null is passed as obj.
|
||||
* @param depth to wich the object is to be cloned (optional, defaults to infinity)
|
||||
*/
|
||||
function clone<T>(val: T, circular?: boolean, depth?: number): T;
|
||||
|
||||
namespace clone {
|
||||
/**
|
||||
* @param obj the object that you want to clone
|
||||
*/
|
||||
function clonePrototype<T>(obj: T): T;
|
||||
}
|
||||
|
||||
export = clone
|
||||
}
|
||||
8
typings/modules/clone/typings.json
Normal file
8
typings/modules/clone/typings.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"resolution": "main",
|
||||
"tree": {
|
||||
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/337587de8c13868283993bfacdcdd1a0f3291e7f/clone/index.d.ts",
|
||||
"raw": "registry:dt/clone#0.1.11+20160428043022",
|
||||
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/337587de8c13868283993bfacdcdd1a0f3291e7f/clone/index.d.ts"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue