mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Adding $localize declare #569
This commit is contained in:
parent
dc6407251f
commit
680a3041f4
@ -31,12 +31,15 @@ import {SearchQueryDTO, SearchQueryTypes, TextSearch,} from '../../entities/Sear
|
||||
import {SortingMethods} from '../../entities/SortingMethods';
|
||||
import {UserRoles} from '../../entities/UserDTO';
|
||||
|
||||
declare let $localize: (s: TemplateStringsArray) => string;
|
||||
|
||||
if (typeof $localize === 'undefined') {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
global.$localize = (s) => s;
|
||||
}
|
||||
|
||||
|
||||
export enum DatabaseType {
|
||||
memory = 1,
|
||||
mysql = 2,
|
||||
|
@ -5,6 +5,7 @@ import {UserRoles} from '../../entities/UserDTO';
|
||||
import {ConfigProperty, SubConfigClass} from 'typeconfig/common';
|
||||
import {SearchQueryDTO} from '../../entities/SearchQueryDTO';
|
||||
|
||||
declare let $localize: (s: TemplateStringsArray) => string;
|
||||
if (typeof $localize === 'undefined') {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
@ -12,6 +13,7 @@ if (typeof $localize === 'undefined') {
|
||||
}
|
||||
|
||||
|
||||
|
||||
export enum MapProviders {
|
||||
OpenStreetMap = 1,
|
||||
Mapbox = 2,
|
||||
|
Loading…
Reference in New Issue
Block a user