@@ -37,62 +37,62 @@ declare module 'dicom-parser' {
37
37
/**
38
38
* Finds the element for tag and returns an unsigned int 16 if it exists and has data. Use this function for VR type US.
39
39
*/
40
- uint16 : ( tag : string , index ?: number ) => number ;
40
+ uint16 : ( tag : string , index ?: number ) => number | undefined ;
41
41
42
42
/**
43
43
* Finds the element for tag and returns a signed int 16 if it exists and has data. Use this function for VR type SS.
44
44
*/
45
- int16 : ( tag : string , index ?: number ) => number ;
45
+ int16 : ( tag : string , index ?: number ) => number | undefined ;
46
46
47
47
/**
48
48
* Finds the element for tag and returns an unsigned int 32 if it exists and has data. Use this function for VR type UL.
49
49
*/
50
- uint32 : ( tag : string , index ?: number ) => number ;
50
+ uint32 : ( tag : string , index ?: number ) => number | undefined ;
51
51
52
52
/**
53
53
* Finds the element for tag and returns a signed int 32 if it exists and has data. Use this function for VR type SL.
54
54
*/
55
- int32 : ( tag : string , index ?: number ) => number ;
55
+ int32 : ( tag : string , index ?: number ) => number | undefined ;
56
56
57
57
/**
58
58
* Finds the element for tag and returns a 32 bit floating point number if it exists and has data. Use this function for VR type FL.
59
59
*/
60
- float : ( tag : string , index ?: number ) => number ;
60
+ float : ( tag : string , index ?: number ) => number | undefined ;
61
61
62
62
/**
63
63
* Finds the element for tag and returns a 64 bit floating point number if it exists and has data. Use this function for VR type FD.
64
64
*/
65
- double : ( tag : string , index ?: number ) => number ;
65
+ double : ( tag : string , index ?: number ) => number | undefined ;
66
66
67
67
/**
68
68
* Returns the actual Value Multiplicity of an element - the number of values in a multi-valued element.
69
69
*/
70
- numStringValues : ( tag : string ) => number ;
70
+ numStringValues : ( tag : string ) => number | undefined ;
71
71
72
72
/**
73
73
* Finds the element for tag and returns a string if it exists and has data. Use this function for VR types AE, CS, SH, and LO.
74
74
*/
75
- string : ( tag : string , index ?: number ) => string ;
75
+ string : ( tag : string , index ?: number ) => string | undefined ;
76
76
77
77
/**
78
78
* Finds the element for tag and returns a string with the leading spaces preserved and trailing spaces removed if it exists and has data. Use this function for VR types UT, ST, and LT.
79
79
*/
80
- text : ( tag : string , index ?: number ) => string ;
80
+ text : ( tag : string , index ?: number ) => string | undefined ;
81
81
82
82
/**
83
83
* Finds the element for tag and parses a string to a float if it exists and has data. Use this function for VR type DS.
84
84
*/
85
- floatString : ( tag : string , index ?: number ) => number ;
85
+ floatString : ( tag : string , index ?: number ) => number | undefined ;
86
86
87
87
/**
88
88
* Finds the element for tag and parses a string to an integer if it exists and has data. Use this function for VR type IS.
89
89
*/
90
- intString : ( tag : string , index ?: number ) => number ;
90
+ intString : ( tag : string , index ?: number ) => number | undefined ;
91
91
92
92
/**
93
93
* Finds the element for tag and parses an element tag according to the 'AT' VR definition if it exists and has data. Use this function for VR type AT.
94
94
*/
95
- attributeTag : ( tag : string ) => string ;
95
+ attributeTag : ( tag : string ) => string | undefined ;
96
96
}
97
97
98
98
export interface ByteStream {
0 commit comments