Skip to content

Commit e7bb720

Browse files
committed
Export models, type guards and assertions
1 parent 8bdea9f commit e7bb720

File tree

2 files changed

+215
-61
lines changed

2 files changed

+215
-61
lines changed

packages/app/src/index.ts

Lines changed: 112 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,120 @@ export type GetExportURL = NonNullable<DataProviderApi['getExportURL']>;
1616
export { useDataContext } from './providers/DataProvider';
1717
export type { DataContextValue } from './providers/DataProvider';
1818

19-
// Undocumented
20-
export { assertEnvVar } from '@h5web/shared/guards';
21-
export { assertNonNull } from '@h5web/shared/guards';
22-
2319
// Undocumented (for @h5web/h5wasm)
2420
export { default as DataProvider } from './providers/DataProvider';
2521
export { DataProviderApi } from './providers/api';
2622
export type { ValuesStoreParams } from './providers/models';
2723
export { getValueOrError } from './providers/utils';
24+
25+
// Undocumented models
26+
export { EntityKind } from '@h5web/shared/hdf5-models';
27+
28+
export type {
29+
// Entity
30+
Entity,
31+
ProvidedEntity,
32+
ChildEntity,
33+
Group,
34+
GroupWithChildren,
35+
Dataset,
36+
Datatype,
37+
UnresolvedEntity,
38+
LinkClass,
39+
Attribute,
40+
Filter,
41+
VirtualSource,
42+
43+
// Shape
44+
Shape,
45+
ScalarShape,
46+
ArrayShape,
47+
48+
// Type
49+
DType,
50+
StringType,
51+
IntegerType,
52+
FloatType,
53+
NumericType,
54+
BooleanType,
55+
EnumType,
56+
NumericLikeType,
57+
ComplexType,
58+
PrintableType,
59+
CompoundType,
60+
ArrayType,
61+
VLenType,
62+
TimeType,
63+
BitfieldType,
64+
OpaqueType,
65+
ReferenceType,
66+
UnknownType,
67+
68+
// Value
69+
ScalarValue,
70+
ArrayValue,
71+
AttributeValues,
72+
H5WebComplex,
73+
} from '@h5web/shared/hdf5-models';
74+
75+
// Undocumented guards and assertions
76+
export {
77+
isDefined,
78+
isNonNull,
79+
assertDefined,
80+
assertNonNull,
81+
assertNum,
82+
assertStr,
83+
assertEnvVar,
84+
assertComplex,
85+
isTypedArray,
86+
isBigIntTypedArray,
87+
assertArray,
88+
assertArrayOrTypedArray,
89+
isGroup,
90+
hasChildren,
91+
isDataset,
92+
isDatatype,
93+
assertGroup,
94+
assertGroupWithChildren,
95+
assertDataset,
96+
assertDatatype,
97+
isScalarShape,
98+
isArrayShape,
99+
hasScalarShape,
100+
hasArrayShape,
101+
hasNonNullShape,
102+
assertScalarShape,
103+
assertArrayShape,
104+
assertNonNullShape,
105+
hasMinDims,
106+
hasNumDims,
107+
assertMinDims,
108+
assertNumDims,
109+
isStringType,
110+
isIntegerType,
111+
isFloatType,
112+
isNumericType,
113+
isBoolType,
114+
isEnumType,
115+
isNumericLikeType,
116+
isComplexType,
117+
isPrintableType,
118+
isCompoundType,
119+
hasStringType,
120+
hasNumericType,
121+
hasBoolType,
122+
hasEnumType,
123+
hasNumericLikeType,
124+
hasComplexType,
125+
hasPrintableType,
126+
hasCompoundType,
127+
assertStringType,
128+
assertNumericType,
129+
assertNumericLikeType,
130+
assertComplexType,
131+
assertPrintableType,
132+
assertCompoundType,
133+
assertScalarValue,
134+
assertDatasetValue,
135+
} from '@h5web/shared/guards';

0 commit comments

Comments
 (0)