mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-11 02:46:44 -06:00
Create type definition for 'langmap' (#4059)
* Create type definition for 'langmap' * Follow lint
This commit is contained in:
parent
5049870b6e
commit
fe13c17fcb
2 changed files with 11 additions and 1 deletions
10
src/@types/langmap.d.ts
vendored
Normal file
10
src/@types/langmap.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
declare module 'langmap' {
|
||||||
|
type Lang = {
|
||||||
|
nativeName: string;
|
||||||
|
englishName: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const langmap: { [lang: string]: Lang };
|
||||||
|
|
||||||
|
export = langmap;
|
||||||
|
}
|
|
@ -9,7 +9,7 @@ import getDriveFileUrl from '../../../../misc/get-drive-file-url';
|
||||||
import { parse, parsePlain } from '../../../../mfm/parse';
|
import { parse, parsePlain } from '../../../../mfm/parse';
|
||||||
import extractEmojis from '../../../../misc/extract-emojis';
|
import extractEmojis from '../../../../misc/extract-emojis';
|
||||||
import extractHashtags from '../../../../misc/extract-hashtags';
|
import extractHashtags from '../../../../misc/extract-hashtags';
|
||||||
const langmap = require('langmap');
|
import * as langmap from 'langmap';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
|
Loading…
Reference in a new issue