summaryrefslogtreecommitdiff
path: root/packages/i18n/src/types.ts
blob: cf9568e7924e155b7952ff35251c74eab9ed008f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * SPDX-FileCopyrightText: syuilo and misskey-project
 * SPDX-License-Identifier: AGPL-3.0-only
 */

declare const kParameters: unique symbol;

export type ParameterizedString<T extends string = string> = string & {
	[kParameters]: T;
};

export interface ILocale {
	[_: string]: string | ParameterizedString | ILocale;
}