Typescript lint error fix (#243)

This commit is contained in:
qwreey 2024-10-22 02:22:48 +00:00
parent d42bfc9f63
commit ddf0c4c2dc
No known key found for this signature in database
GPG key ID: D28DB79297A214BD
4 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,6 @@
# `lune-std-ffi` # `lune-std-ffi`
## Tests ## Tests & Benchmarks
See [tests/ffi](../../tests/ffi/README.md) See [tests/ffi](../../tests/ffi/README.md)

View file

@ -2,6 +2,7 @@ import { libSuffix } from "../../utility/deno.ts";
import { get_clock, get_offset } from "../../utility/proc_clock/deno.ts"; import { get_clock, get_offset } from "../../utility/proc_clock/deno.ts";
const library_file = "./tests/ffi/benchmark/external_call/lib."+libSuffix; const library_file = "./tests/ffi/benchmark/external_call/lib."+libSuffix;
// @ts-ignore
let library = Deno.dlopen(library_file, { let library = Deno.dlopen(library_file, {
add: { add: {
parameters: ["i32", "i32"], parameters: ["i32", "i32"],

View file

@ -1,4 +1,5 @@
export let libSuffix = ""; export let libSuffix = "";
// @ts-ignore
switch (Deno.build.os) { switch (Deno.build.os) {
case "windows": case "windows":
libSuffix = "dll"; libSuffix = "dll";

View file

@ -1,6 +1,7 @@
import { libSuffix } from "../deno.ts"; import { libSuffix } from "../deno.ts";
const library_file = "./tests/ffi/utility/proc_clock/lib."+libSuffix; const library_file = "./tests/ffi/utility/proc_clock/lib."+libSuffix;
// @ts-ignore
let library = Deno.dlopen(library_file, { let library = Deno.dlopen(library_file, {
sizeof_clock: { sizeof_clock: {
parameters: [], parameters: [],
@ -10,6 +11,7 @@ let library = Deno.dlopen(library_file, {
const sizeof_clock = library.symbols.sizeof_clock(); const sizeof_clock = library.symbols.sizeof_clock();
const type_clock_t = "u" + (sizeof_clock * 8); const type_clock_t = "u" + (sizeof_clock * 8);
library.close(); library.close();
// @ts-ignore
library = Deno.dlopen(library_file, { library = Deno.dlopen(library_file, {
get_clock: { get_clock: {
parameters: [], parameters: [],