mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 19:04:13 +08:00
[sinon-chrome] Follow the browser spec
This commit is contained in:
15
types/sinon-chrome/index.d.ts
vendored
15
types/sinon-chrome/index.d.ts
vendored
@@ -357,12 +357,17 @@ declare namespace SinonChrome.permissions {
|
||||
}
|
||||
|
||||
declare namespace SinonChrome.plugins {
|
||||
export interface Translation {
|
||||
message: string;
|
||||
placeholders?: object;
|
||||
}
|
||||
export interface Translations {
|
||||
[key: string]: Translation;
|
||||
[key: string]: {
|
||||
message: string;
|
||||
description?: string;
|
||||
placeholders?: {
|
||||
[key: string]: {
|
||||
content: string;
|
||||
example?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
export class I18nPlugin {
|
||||
constructor(translations?: Translations);
|
||||
|
||||
Reference in New Issue
Block a user