@expresscsv/schemas 0.0.1
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.
- package/README.md +31 -0
- package/dist/.dts/index.d.ts +2 -0
- package/dist/index.d.cts +3321 -0
- package/dist/index.d.mts +3321 -0
- package/dist/index.d.ts +3321 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @expresscsv/schemas
|
|
2
|
+
|
|
3
|
+
Schema authoring and type inference for ExpressCSV, without the widget launcher.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { type Infer, x } from '@expresscsv/schemas';
|
|
9
|
+
|
|
10
|
+
const employeeSchema = x.row({
|
|
11
|
+
name: x.string(),
|
|
12
|
+
email: x.string().email(),
|
|
13
|
+
salary: x.number().currency('USD').optional(),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
type Employee = Infer<typeof employeeSchema>;
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Exports
|
|
20
|
+
|
|
21
|
+
- `x`
|
|
22
|
+
- `Infer`
|
|
23
|
+
- `ExType`
|
|
24
|
+
- `ExBaseDef`
|
|
25
|
+
- `ExRow`
|
|
26
|
+
- `ExRowShape`
|
|
27
|
+
- `ExRowWithOptionalColumns`
|
|
28
|
+
|
|
29
|
+
## Not included
|
|
30
|
+
|
|
31
|
+
This package intentionally does not export the widget launcher, React bindings, or importer configuration types. Use `@expresscsv/sdk` or `@expresscsv/react` for those integration surfaces.
|