80 lines
2.0 KiB
TypeScript
80 lines
2.0 KiB
TypeScript
/**
|
|
* Copyright (C) 2019-2021 Carl Kittelberger <icedream@icedream.pw>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
declare module '*.svg' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.ico' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.png' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.jpg' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.css' {
|
|
const content: Record<string, string>;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.scss' {
|
|
const content: Record<string, string>;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.sass' {
|
|
const content: Record<string, string>;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.styl' {
|
|
const content: Record<string, string>;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.less' {
|
|
const content: Record<string, string>;
|
|
export default content;
|
|
}
|
|
|
|
declare module '@formatjs/intl-numberformat/locale-data/*' {
|
|
export default undefined;
|
|
}
|
|
|
|
declare namespace Intl {
|
|
type NumberFormatPartTypes = 'currency' | 'decimal' | 'fraction' | 'group' | 'infinity' | 'integer' | 'literal' | 'minusSign' | 'nan' | 'plusSign' | 'percentSign';
|
|
|
|
interface NumberFormatPart {
|
|
type: NumberFormatPartTypes;
|
|
value: string;
|
|
}
|
|
|
|
interface NumberFormat {
|
|
formatToParts(number?: number): NumberFormatPart[];
|
|
static polyfilled?: boolean;
|
|
}
|
|
}
|