-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
65 lines (60 loc) · 1.42 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export type CIJSON = {
/**
* Initialise Object's values (date and file)
*/
init(): void
/**
* Extract schema in json
* @param schema Schema you want extract in JSON object
*/
extract(schema: string): CIJSON
/**
* Set data in an JSON value
* @param key Key of JSON Object
* @param value The value you want to set
*/
set(key: string, value: any): CIJSON
/**
* Delete Key into JSON data
* @param key Key you want to delete
*/
remove(key: string): CIJSON
/**
* Push data in JSON Object
* @param key Key of JSON Object
* @param values The values you want to push
*/
pushTo(key: string, ...values: any[]): CIJSON
/**
* Push data in JSON Object
* @param key Key of JSON Object
*/
popTo(key: string): CIJSON
/**
* Save final JSON in FIle
* @param output Output file to save JSON Object
*/
save(output: string): void
/**
* Get data JSON as Object
*/
getData(): object
/**
* Get values of JSON
*/
getValues(): Array<string> | Array<number> | Array<object>
/**
* Get keys of JSON
*/
getKeys(): Array<string> | Array<number>
}
/**
* Create json object
* @param object Object to initialize json
*/
export function create(object: object): CIJSON
/**
* Open a JSON file
* @param input JSON File you want open
*/
export function open(input: string): CIJSON