UNPKG

sussudio

Version:

An unofficial VS Code Internal API

30 lines (29 loc) 1.21 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import "../../../../css!./countBadge.mjs"; export interface ICountBadgeOptions { readonly count?: number; readonly countFormat?: string; readonly titleFormat?: string; } export interface ICountBadgeStyles { readonly badgeBackground: string | undefined; readonly badgeForeground: string | undefined; readonly badgeBorder: string | undefined; } export declare const unthemedCountStyles: ICountBadgeStyles; export declare class CountBadge { private readonly options; private readonly styles; private element; private count; private countFormat; private titleFormat; constructor(container: HTMLElement, options: ICountBadgeOptions, styles: ICountBadgeStyles); setCount(count: number): void; setCountFormat(countFormat: string): void; setTitleFormat(titleFormat: string): void; private render; }