Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/typings/macos-keychain.d.ts
13379 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
// Type declarations for @vscode/macos-keychain.
7
// The package is an optional dependency (macOS-only native addon), so types
8
// are duplicated here to ensure TypeScript compilation succeeds on all platforms.
9
10
declare module '@vscode/macos-keychain' {
11
export function keychainSet(service: string, account: string, value: string): void;
12
export function keychainGet(service: string, account: string): string | undefined;
13
export function keychainDelete(service: string, account: string): boolean;
14
export function keychainList(service: string): string[];
15
}
16
17