Skip to content

Commit

Permalink
Add test for most data conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Nov 19, 2024
1 parent fe5d89f commit d82aaa3
Show file tree
Hide file tree
Showing 4 changed files with 1,332 additions and 0 deletions.
61 changes: 61 additions & 0 deletions crates/cli/tests/reference/echo.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/* tslint:disable */
/* eslint-disable */
export function echo_u8(a: number): number;
export function echo_i8(a: number): number;
export function echo_u16(a: number): number;
export function echo_i16(a: number): number;
export function echo_u32(a: number): number;
export function echo_i32(a: number): number;
export function echo_u64(a: bigint): bigint;
export function echo_i64(a: bigint): bigint;
export function echo_u128(a: bigint): bigint;
export function echo_i128(a: bigint): bigint;
export function echo_usize(a: number): number;
export function echo_isize(a: number): number;
export function echo_f32(a: number): number;
export function echo_f64(a: number): number;
export function echo_bool(a: boolean): boolean;
export function echo_char(a: string): string;
export function echo_string(a: string): string;
export function echo_vec_u8(a: Uint8Array): Uint8Array;
export function echo_vec_i8(a: Int8Array): Int8Array;
export function echo_vec_u16(a: Uint16Array): Uint16Array;
export function echo_vec_i16(a: Int16Array): Int16Array;
export function echo_vec_u32(a: Uint32Array): Uint32Array;
export function echo_vec_i32(a: Int32Array): Int32Array;
export function echo_vec_u64(a: BigUint64Array): BigUint64Array;
export function echo_vec_i64(a: BigInt64Array): BigInt64Array;
export function echo_vec_string(a: (string)[]): (string)[];
export function echo_struct(a: Foo): Foo;
export function echo_vec_struct(a: (Foo)[]): (Foo)[];
export function echo_option_u8(a?: number): number | undefined;
export function echo_option_i8(a?: number): number | undefined;
export function echo_option_u16(a?: number): number | undefined;
export function echo_option_i16(a?: number): number | undefined;
export function echo_option_u32(a?: number): number | undefined;
export function echo_option_i32(a?: number): number | undefined;
export function echo_option_u64(a?: bigint): bigint | undefined;
export function echo_option_i64(a?: bigint): bigint | undefined;
export function echo_option_u128(a?: bigint): bigint | undefined;
export function echo_option_i128(a?: bigint): bigint | undefined;
export function echo_option_usize(a?: number): number | undefined;
export function echo_option_isize(a?: number): number | undefined;
export function echo_option_f32(a?: number): number | undefined;
export function echo_option_f64(a?: number): number | undefined;
export function echo_option_bool(a?: boolean): boolean | undefined;
export function echo_option_char(a?: string): string | undefined;
export function echo_option_string(a?: string): string | undefined;
export function echo_option_vec_u8(a?: Uint8Array): Uint8Array | undefined;
export function echo_option_vec_i8(a?: Int8Array): Int8Array | undefined;
export function echo_option_vec_u16(a?: Uint16Array): Uint16Array | undefined;
export function echo_option_vec_i16(a?: Int16Array): Int16Array | undefined;
export function echo_option_vec_u32(a?: Uint32Array): Uint32Array | undefined;
export function echo_option_vec_i32(a?: Int32Array): Int32Array | undefined;
export function echo_option_vec_u64(a?: BigUint64Array): BigUint64Array | undefined;
export function echo_option_vec_i64(a?: BigInt64Array): BigInt64Array | undefined;
export function echo_option_vec_string(a?: (string)[]): (string)[] | undefined;
export function echo_option_struct(a?: Foo): Foo | undefined;
export function echo_option_vec_struct(a?: (Foo)[]): (Foo)[] | undefined;
export class Foo {
free(): void;
}
Loading

0 comments on commit d82aaa3

Please sign in to comment.