bitwarden_wasm_internal/
custom_types.rs1#[wasm_bindgen::prelude::wasm_bindgen(typescript_custom_section)]
4const TS_CUSTOM_TYPES: &'static str = r#"
5
6import { Tagged } from "type-fest";
7
8/**
9 * A string that **MUST** be a valid UUID.
10 *
11 * Never create or cast to this type directly, use the `uuid<T>()` function instead.
12 */
13// TODO: Uncomment this when the `uuid` crate is used.
14// export type Uuid = unknown;
15
16export type Uuid = string;
17
18/**
19 * RFC3339 compliant date-time string.
20 * @typeParam T - Not used in JavaScript.
21 */
22export type DateTime<T = unknown> = string;
23
24/**
25 * UTC date-time string. Not used in JavaScript.
26 */
27export type Utc = unknown;
28
29/**
30 * An integer that is known not to equal zero.
31 */
32export type NonZeroU32 = number;
33"#;