@types/jsbarcode 3.11.4 → 3.12.3
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.
- jsbarcode/README.md +2 -60
- jsbarcode/package.json +5 -20
- jsbarcode/index.d.ts +0 -42
jsbarcode/README.md
CHANGED
|
@@ -1,61 +1,3 @@
|
|
|
1
|
-
#
|
|
2
|
-
> `npm install --save @types/jsbarcode`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for jsbarcode (https://github.com/lindell/JsBarcode).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsbarcode.
|
|
9
|
-
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsbarcode/index.d.ts)
|
|
10
|
-
````ts
|
|
11
|
-
/// <reference types="node" />
|
|
1
|
+
This is a stub types definition for @types/jsbarcode (https://github.com/lindell/JsBarcode#readme).
|
|
12
2
|
|
|
13
|
-
|
|
14
|
-
function getModule(name: string): () => void;
|
|
15
|
-
interface JsBarcodeOptions {
|
|
16
|
-
format: string;
|
|
17
|
-
width?: number | undefined;
|
|
18
|
-
height?: number | undefined;
|
|
19
|
-
displayValue?: boolean | undefined;
|
|
20
|
-
text?: string | undefined;
|
|
21
|
-
fontOptions?: string | undefined;
|
|
22
|
-
font?: string | undefined;
|
|
23
|
-
textAlign?: string | undefined;
|
|
24
|
-
textPosition?: string | undefined;
|
|
25
|
-
textMargin?: number | undefined;
|
|
26
|
-
fontSize?: number | undefined;
|
|
27
|
-
background?: string | undefined;
|
|
28
|
-
lineColor?: string | undefined;
|
|
29
|
-
margin?: number | undefined;
|
|
30
|
-
marginTop?: number | undefined;
|
|
31
|
-
marginBottom?: number | undefined;
|
|
32
|
-
marginLeft?: number | undefined;
|
|
33
|
-
marginRight?: number | undefined;
|
|
34
|
-
flat?: boolean | undefined;
|
|
35
|
-
valid?(valid: boolean): void;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* The Browser version of the library's functionality, which makes use of an HTMLCanvasElement, HTMLImageElement or SVGElement
|
|
41
|
-
* for rendering.
|
|
42
|
-
* @param svg ID string or HTML element of the target to render within.
|
|
43
|
-
* @param barcodeText Text to be rendered.
|
|
44
|
-
* @param barcodeOptions Options used for rendering.
|
|
45
|
-
*/
|
|
46
|
-
declare function JsBarcode(
|
|
47
|
-
svg: string | HTMLCanvasElement | HTMLImageElement | SVGElement,
|
|
48
|
-
barcodeText: string,
|
|
49
|
-
barcodeOptions?: JsBarcode.JsBarcodeOptions,
|
|
50
|
-
): void;
|
|
51
|
-
|
|
52
|
-
export = JsBarcode;
|
|
53
|
-
|
|
54
|
-
````
|
|
55
|
-
|
|
56
|
-
### Additional Details
|
|
57
|
-
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
|
|
58
|
-
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
59
|
-
|
|
60
|
-
# Credits
|
|
61
|
-
These definitions were written by [Domien Bakker](https://github.com/domienbakker).
|
|
3
|
+
jsbarcode provides its own type definitions, so you don't need @types/jsbarcode installed!
|
jsbarcode/package.json
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jsbarcode",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "TypeScript definitions for jsbarcode",
|
|
5
|
-
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsbarcode",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"contributors": [
|
|
8
|
-
{
|
|
9
|
-
"name": "Domien Bakker",
|
|
10
|
-
"githubUsername": "domienbakker",
|
|
11
|
-
"url": "https://github.com/domienbakker"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
3
|
+
"version": "3.12.3",
|
|
4
|
+
"description": "Stub TypeScript definitions entry for jsbarcode, 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/jsbarcode"
|
|
20
|
-
},
|
|
21
6
|
"scripts": {},
|
|
7
|
+
"license": "MIT",
|
|
22
8
|
"dependencies": {
|
|
23
|
-
"
|
|
9
|
+
"jsbarcode": "*"
|
|
24
10
|
},
|
|
25
|
-
"
|
|
26
|
-
"typeScriptVersion": "4.5"
|
|
11
|
+
"deprecated": "This is a stub types definition. jsbarcode provides its own type definitions, so you do not need this installed."
|
|
27
12
|
}
|
jsbarcode/index.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
|
-
declare namespace JsBarcode {
|
|
4
|
-
function getModule(name: string): () => void;
|
|
5
|
-
interface JsBarcodeOptions {
|
|
6
|
-
format: string;
|
|
7
|
-
width?: number | undefined;
|
|
8
|
-
height?: number | undefined;
|
|
9
|
-
displayValue?: boolean | undefined;
|
|
10
|
-
text?: string | undefined;
|
|
11
|
-
fontOptions?: string | undefined;
|
|
12
|
-
font?: string | undefined;
|
|
13
|
-
textAlign?: string | undefined;
|
|
14
|
-
textPosition?: string | undefined;
|
|
15
|
-
textMargin?: number | undefined;
|
|
16
|
-
fontSize?: number | undefined;
|
|
17
|
-
background?: string | undefined;
|
|
18
|
-
lineColor?: string | undefined;
|
|
19
|
-
margin?: number | undefined;
|
|
20
|
-
marginTop?: number | undefined;
|
|
21
|
-
marginBottom?: number | undefined;
|
|
22
|
-
marginLeft?: number | undefined;
|
|
23
|
-
marginRight?: number | undefined;
|
|
24
|
-
flat?: boolean | undefined;
|
|
25
|
-
valid?(valid: boolean): void;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The Browser version of the library's functionality, which makes use of an HTMLCanvasElement, HTMLImageElement or SVGElement
|
|
31
|
-
* for rendering.
|
|
32
|
-
* @param svg ID string or HTML element of the target to render within.
|
|
33
|
-
* @param barcodeText Text to be rendered.
|
|
34
|
-
* @param barcodeOptions Options used for rendering.
|
|
35
|
-
*/
|
|
36
|
-
declare function JsBarcode(
|
|
37
|
-
svg: string | HTMLCanvasElement | HTMLImageElement | SVGElement,
|
|
38
|
-
barcodeText: string,
|
|
39
|
-
barcodeOptions?: JsBarcode.JsBarcodeOptions,
|
|
40
|
-
): void;
|
|
41
|
-
|
|
42
|
-
export = JsBarcode;
|