modify d.ts, modify function name
This commit is contained in:
parent
657d47722f
commit
f090f0acc0
5
index.d.ts
vendored
5
index.d.ts
vendored
@ -1 +1,4 @@
|
|||||||
export const diff: (left: string, right: string) => []
|
export const diffChars: (
|
||||||
|
left: string,
|
||||||
|
right: string,
|
||||||
|
) => [{ count: number; value: string; added: boolean; removed: boolean }]
|
||||||
|
@ -16,7 +16,7 @@ static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
|||||||
register_module!(example, init);
|
register_module!(example, init);
|
||||||
|
|
||||||
fn init(module: &mut Module) -> Result<()> {
|
fn init(module: &mut Module) -> Result<()> {
|
||||||
module.create_named_method("diff", diff_char)?;
|
module.create_named_method("diffChars", diff_char)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user