bitwarden_wasm_internal/
custom_types.rs

1/// This file contains custom TypeScript for types defined by external crates.
2/// Everything in the string below is appended to the generated TypeScript definition file.
3#[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 */
13export type Uuid = unknown;
14
15/**
16 * RFC3339 compliant date-time string.
17 * @typeParam T - Not used in JavaScript.
18 */
19export type DateTime<T = unknown> = string;
20
21/**
22 * UTC date-time string. Not used in JavaScript.
23 */
24export type Utc = unknown;
25
26/**
27 * An integer that is known not to equal zero.
28 */
29export type NonZeroU32 = number;
30"#;