mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-02 20:13:08 +02:00
Create type definition for '*/meta.json' (#4073)
This commit is contained in:
parent
1b0601b421
commit
ba4dcc40da
2 changed files with 4 additions and 1 deletions
3
src/@types/meta.json.d.ts
vendored
Normal file
3
src/@types/meta.json.d.ts
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
declare module '*/meta.json' {
|
||||||
|
const version: string;
|
||||||
|
}
|
|
@ -6,7 +6,7 @@ import define from '../define';
|
||||||
import fetchMeta from '../../../misc/fetch-meta';
|
import fetchMeta from '../../../misc/fetch-meta';
|
||||||
import * as pkg from '../../../../package.json';
|
import * as pkg from '../../../../package.json';
|
||||||
|
|
||||||
const client = require('../../../../built/client/meta.json');
|
import * as client from '../../../../built/client/meta.json';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
stability: 'stable',
|
stability: 'stable',
|
||||||
|
|
Loading…
Reference in a new issue