mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Make All LocaleMessages properties required
Also fix lint.
This commit is contained in:
26
types/vis/index.d.ts
vendored
26
types/vis/index.d.ts
vendored
@@ -1715,19 +1715,19 @@ export interface Locales {
|
||||
}
|
||||
|
||||
export interface LocaleMessages {
|
||||
edit?: string;
|
||||
del?: string;
|
||||
back?: string;
|
||||
addNode?: string;
|
||||
addEdge?: string;
|
||||
editNode?: string;
|
||||
editEdge?: string;
|
||||
addDescription?: string;
|
||||
edgeDescription?: string;
|
||||
editEdgeDescription?: string;
|
||||
createEdgeError?: string;
|
||||
deleteClusterError?: string;
|
||||
editClusterError?: string;
|
||||
edit: string;
|
||||
del: string;
|
||||
back: string;
|
||||
addNode: string;
|
||||
addEdge: string;
|
||||
editNode: string;
|
||||
editEdge: string;
|
||||
addDescription: string;
|
||||
edgeDescription: string;
|
||||
editEdgeDescription: string;
|
||||
createEdgeError: string;
|
||||
deleteClusterError: string;
|
||||
editClusterError: string;
|
||||
}
|
||||
|
||||
export interface Options {
|
||||
|
||||
@@ -194,7 +194,7 @@ network.setOptions(options2);
|
||||
//
|
||||
// Test code sample from http://visjs.org/docs/network/#locales
|
||||
//
|
||||
var locales = {
|
||||
const locales = {
|
||||
en: {
|
||||
edit: 'Edit',
|
||||
del: 'Delete selected',
|
||||
@@ -210,10 +210,10 @@ var locales = {
|
||||
deleteClusterError: 'Clusters cannot be deleted.',
|
||||
editClusterError: 'Clusters cannot be edited.'
|
||||
}
|
||||
}
|
||||
};
|
||||
options = {
|
||||
locale: 'en',
|
||||
locales: locales,
|
||||
}
|
||||
locales,
|
||||
};
|
||||
|
||||
network.setOptions(options);
|
||||
|
||||
Reference in New Issue
Block a user