Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/contrib/policyExport/common/policyDto.ts
4780 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
export type LocalizedValueDto = {
7
key: string;
8
value: string;
9
};
10
11
export interface CategoryDto {
12
key: string;
13
name: LocalizedValueDto;
14
}
15
16
export interface PolicyDto {
17
key: string;
18
name: string;
19
category: string;
20
minimumVersion: `${number}.${number}`;
21
localization: {
22
description: LocalizedValueDto;
23
enumDescriptions?: LocalizedValueDto[];
24
};
25
type?: string | string[];
26
default?: unknown;
27
enum?: string[];
28
}
29
30
export interface ExportedPolicyDataDto {
31
categories: CategoryDto[];
32
policies: PolicyDto[];
33
}
34
35