Skip to content

Commit c1e2833

Browse files
committed
refactor: use types defined in wasm/types
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 375104a commit c1e2833

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/node_modules/@stdlib/wasm/memory/docs/types/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
// TypeScript Version: 4.1
2020

21+
import { Memory as MemoryInterface } from '@stdlib/wasm/types';
22+
2123
/**
2224
* WebAssembly memory descriptor object.
2325
*/
@@ -41,7 +43,7 @@ interface Descriptor {
4143
/**
4244
* Class for creating WebAssembly memory instances.
4345
*/
44-
declare class Memory {
46+
declare class Memory implements MemoryInterface {
4547
/**
4648
* WebAssembly memory instance constructor.
4749
*

lib/node_modules/@stdlib/wasm/memory/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Memory = require( './index' );
2828
new Memory( { 'initial': 0 } ); // $ExpectType Memory
2929
}
3030

31-
// The constructor function has to be invoked with `new`...
31+
// The constructor function has to be invoked with the `new` operator...
3232
{
3333
Memory( { 'initial': 0 } ); // $ExpectError
3434
}

0 commit comments

Comments
 (0)