mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
Add definitions for cleasby-vigfusson-dictionary (#50107)
This commit is contained in:
committed by
GitHub
parent
8ab0f5c803
commit
cc13deeaa2
@@ -0,0 +1,7 @@
|
||||
import { getDictionary, getNoMarkupDictionary } from 'cleasby-vigfusson-dictionary';
|
||||
|
||||
// $ExpectType DictionaryEntry[]
|
||||
const result = getDictionary();
|
||||
|
||||
// $ExpectType DictionaryEntry[]
|
||||
const result2 = getNoMarkupDictionary();
|
||||
12
types/cleasby-vigfusson-dictionary/index.d.ts
vendored
Normal file
12
types/cleasby-vigfusson-dictionary/index.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
// Type definitions for cleasby-vigfusson-dictionary 1.0
|
||||
// Project: https://github.com/stscoundrel/cleasby-vigfusson-dictionary
|
||||
// Definitions by: StScoundrel <https://github.com/stscoundrel>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export interface DictionaryEntry {
|
||||
word: string;
|
||||
definitions: string[];
|
||||
}
|
||||
|
||||
export function getDictionary(): DictionaryEntry[];
|
||||
export function getNoMarkupDictionary(): DictionaryEntry[];
|
||||
23
types/cleasby-vigfusson-dictionary/tsconfig.json
Normal file
23
types/cleasby-vigfusson-dictionary/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"cleasby-vigfusson-dictionary-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/cleasby-vigfusson-dictionary/tslint.json
Normal file
3
types/cleasby-vigfusson-dictionary/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user