Skip to content

Commit

Permalink
style(web): run pnpm format
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLostLambda committed Jul 26, 2024
1 parent 19c9bad commit 0719683
Show file tree
Hide file tree
Showing 4 changed files with 462 additions and 392 deletions.
3 changes: 2 additions & 1 deletion web/smithereens/pkg/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Build

Should be easy enough here — just install [`wasm-pack`](https://github.com/rustwasm/wasm-pack) and run:
``` sh

```sh
wasm-pack build --out-name smithereens --target web
```
76 changes: 44 additions & 32 deletions web/smithereens/pkg/smithereens.d.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
/* tslint:disable */
/* eslint-disable */
/**
* @returns {string}
*/
* @returns {string}
*/
export function version(): string;
/**
*/
*/
export class Peptidoglycan {
free(): void;
/**
* @param {string} structure
*/
/**
* @param {string} structure
*/
constructor(structure: string);
/**
* @returns {number}
*/
/**
* @returns {number}
*/
oligomerization_state(): number;
/**
* @returns {string}
*/
/**
* @returns {string}
*/
monoisotopic_mass(): string;
/**
* @returns {string}
*/
/**
* @returns {string}
*/
fragment(): string;
}

export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
export type InitInput =
| RequestInfo
| URL
| Response
| BufferSource
| WebAssembly.Module;

export interface InitOutput {
readonly memory: WebAssembly.Memory;
Expand All @@ -39,27 +44,34 @@ export interface InitOutput {
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_export_0: (a: number, b: number, c: number) => void;
readonly __wbindgen_export_1: (a: number, b: number) => number;
readonly __wbindgen_export_2: (a: number, b: number, c: number, d: number) => number;
readonly __wbindgen_export_2: (
a: number,
b: number,
c: number,
d: number,
) => number;
readonly __wbindgen_export_3: (a: number) => void;
}

export type SyncInitInput = BufferSource | WebAssembly.Module;
/**
* Instantiates the given `module`, which can either be bytes or
* a precompiled `WebAssembly.Module`.
*
* @param {SyncInitInput} module
*
* @returns {InitOutput}
*/
* Instantiates the given `module`, which can either be bytes or
* a precompiled `WebAssembly.Module`.
*
* @param {SyncInitInput} module
*
* @returns {InitOutput}
*/
export function initSync(module: SyncInitInput): InitOutput;

/**
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
* for everything else, calls `WebAssembly.instantiate` directly.
*
* @param {InitInput | Promise<InitInput>} module_or_path
*
* @returns {Promise<InitOutput>}
*/
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
* for everything else, calls `WebAssembly.instantiate` directly.
*
* @param {InitInput | Promise<InitInput>} module_or_path
*
* @returns {Promise<InitOutput>}
*/
export default function __wbg_init(
module_or_path?: InitInput | Promise<InitInput>,
): Promise<InitOutput>;
Loading

0 comments on commit 0719683

Please sign in to comment.