@types/babar 0.2.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- babar/README.md +2 -36
- babar/package.json +7 -20
- babar/index.d.ts +0 -18
babar/README.md
CHANGED
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
#
|
|
2
|
-
> `npm install --save @types/babar`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for babar (https://github.com/stephan83/babar#readme).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babar.
|
|
9
|
-
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babar/index.d.ts)
|
|
10
|
-
````ts
|
|
11
|
-
type color = "yellow" | "cyan" | "white" | "magenta" | "green" | "red" | "grey" | "blue";
|
|
1
|
+
This is a stub types definition for @types/babar (https://github.com/stephan83/babar#readme).
|
|
12
2
|
|
|
13
|
-
|
|
14
|
-
caption?: string | undefined;
|
|
15
|
-
color?: color | "ascii" | undefined;
|
|
16
|
-
grid?: color | undefined;
|
|
17
|
-
width?: number | undefined;
|
|
18
|
-
height?: number | undefined;
|
|
19
|
-
xFractions?: number | undefined;
|
|
20
|
-
yFractions?: number | undefined;
|
|
21
|
-
minX?: number | undefined;
|
|
22
|
-
maxX?: number | undefined;
|
|
23
|
-
minY?: number | undefined;
|
|
24
|
-
maxY?: number | undefined;
|
|
25
|
-
}
|
|
26
|
-
declare function babar(points: ReadonlyArray<[number, number]>, options?: Options): string;
|
|
27
|
-
|
|
28
|
-
export = babar;
|
|
29
|
-
|
|
30
|
-
````
|
|
31
|
-
|
|
32
|
-
### Additional Details
|
|
33
|
-
* Last updated: Mon, 06 Nov 2023 22:41:04 GMT
|
|
34
|
-
* Dependencies: none
|
|
35
|
-
|
|
36
|
-
# Credits
|
|
37
|
-
These definitions were written by [Matt Bachmann](https://github.com/Bachmann1234).
|
|
3
|
+
babar provides its own type definitions, so you don't need @types/babar installed!
|
babar/package.json
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/babar",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "TypeScript definitions for babar",
|
|
5
|
-
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babar",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"contributors": [
|
|
8
|
-
{
|
|
9
|
-
"name": "Matt Bachmann",
|
|
10
|
-
"githubUsername": "Bachmann1234",
|
|
11
|
-
"url": "https://github.com/Bachmann1234"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Stub TypeScript definitions entry for babar, which provides its own types definitions",
|
|
14
5
|
"main": "",
|
|
15
|
-
"types": "index.d.ts",
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
19
|
-
"directory": "types/babar"
|
|
20
|
-
},
|
|
21
6
|
"scripts": {},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"babar": "*"
|
|
10
|
+
},
|
|
11
|
+
"deprecated": "This is a stub types definition. babar provides its own type definitions, so you do not need this installed."
|
|
25
12
|
}
|
babar/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type color = "yellow" | "cyan" | "white" | "magenta" | "green" | "red" | "grey" | "blue";
|
|
2
|
-
|
|
3
|
-
interface Options {
|
|
4
|
-
caption?: string | undefined;
|
|
5
|
-
color?: color | "ascii" | undefined;
|
|
6
|
-
grid?: color | undefined;
|
|
7
|
-
width?: number | undefined;
|
|
8
|
-
height?: number | undefined;
|
|
9
|
-
xFractions?: number | undefined;
|
|
10
|
-
yFractions?: number | undefined;
|
|
11
|
-
minX?: number | undefined;
|
|
12
|
-
maxX?: number | undefined;
|
|
13
|
-
minY?: number | undefined;
|
|
14
|
-
maxY?: number | undefined;
|
|
15
|
-
}
|
|
16
|
-
declare function babar(points: ReadonlyArray<[number, number]>, options?: Options): string;
|
|
17
|
-
|
|
18
|
-
export = babar;
|