fix(native): async fn compile error (#7435)

This commit is contained in:
LongYinan
2024-07-08 15:04:37 +08:00
committed by GitHub
parent 602d932065
commit ba356f4412
17 changed files with 81 additions and 57 deletions
+6 -6
View File
@@ -1,20 +1,20 @@
/* auto-generated by NAPI-RS */
/* eslint-disable */
export class Tokenizer {
export declare class Tokenizer {
count(content: string, allowedSpecial?: Array<string> | undefined | null): number
}
export function fromModelName(modelName: string): Tokenizer | null
export declare function fromModelName(modelName: string): Tokenizer | null
export function getMime(input: Uint8Array): string
export declare function getMime(input: Uint8Array): string
/**
* Merge updates in form like `Y.applyUpdate(doc, update)` way and return the
* result binary.
*/
export function mergeUpdatesInApplyWay(updates: Array<Buffer>): Buffer
export declare function mergeUpdatesInApplyWay(updates: Array<Buffer>): Buffer
export function mintChallengeResponse(resource: string, bits?: number | undefined | null): Promise<string>
export declare function mintChallengeResponse(resource: string, bits?: number | undefined | null): Promise<string>
export function verifyChallengeResponse(response: string, bits: number, resource: string): Promise<boolean>
export declare function verifyChallengeResponse(response: string, bits: number, resource: string): Promise<boolean>
+1 -1
View File
@@ -9,6 +9,6 @@
},
"devDependencies": {
"@toeverything/infra": "workspace:*",
"electron": "^30.1.1"
"electron": "^31.1.0"
}
}
+1 -1
View File
@@ -52,7 +52,7 @@
"builder-util-runtime": "^9.2.5-alpha.2",
"core-js": "^3.36.1",
"cross-env": "^7.0.3",
"electron": "^30.1.1",
"electron": "^31.1.0",
"electron-log": "^5.1.2",
"electron-squirrel-startup": "1.0.1",
"electron-window-state": "^5.0.3",
+4 -4
View File
@@ -1,6 +1,6 @@
/* auto-generated by NAPI-RS */
/* eslint-disable */
export class SqliteConnection {
export declare class SqliteConnection {
constructor(path: string)
connect(): Promise<void>
addBlob(key: string, blob: Uint8Array): Promise<void>
@@ -43,7 +43,7 @@ export interface InsertRow {
data: Uint8Array
}
export function mintChallengeResponse(resource: string, bits?: number | undefined | null): Promise<string>
export declare function mintChallengeResponse(resource: string, bits?: number | undefined | null): Promise<string>
export interface UpdateRow {
id: number
@@ -52,7 +52,7 @@ export interface UpdateRow {
docId?: string
}
export enum ValidationResult {
export declare enum ValidationResult {
MissingTables = 0,
MissingDocIdColumn = 1,
MissingVersionColumn = 2,
@@ -60,5 +60,5 @@ export enum ValidationResult {
Valid = 4
}
export function verifyChallengeResponse(response: string, bits: number, resource: string): Promise<boolean>
export declare function verifyChallengeResponse(response: string, bits: number, resource: string): Promise<boolean>