Skip to content

Commit

Permalink
fix: type of load()
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Jan 11, 2024
1 parent 2f21834 commit b5948da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion denops/skkeleton/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { getKanaTable, loadKanaTableFiles } from "./kana.ts";
import { ConfigOptions, Encode, Encoding } from "./types.ts";
import { homeExpand } from "./util.ts";

export const config: ConfigOptions = {
export const config: Omit<ConfigOptions, "globalDictionaries"> & {
globalDictionaries: [string, string][];
} = {
acceptIllegalResult: false,
completionRankFile: "",
databasePath: "",
Expand Down
2 changes: 1 addition & 1 deletion denops/skkeleton/dictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class Library {
}

export async function load(
globalDictionaryConfig: (string | [string, string])[],
globalDictionaryConfig: [string, string][],
userDictionaryPath: UserDictionaryPath,
): Promise<Library> {
const userDictionary = new UserDictionary();
Expand Down

0 comments on commit b5948da

Please sign in to comment.