mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Take out top from IAutoHighlightResult
This commit is contained in:
Vendored
+7
-3
@@ -57,19 +57,23 @@ declare module "highlight.js"
|
||||
export var TITLE_MODE : IMode;
|
||||
export var UNDERSCORE_TITLE_MODE : IMode;
|
||||
|
||||
export interface IHighlightResult
|
||||
export interface IHighlightResultBase
|
||||
{
|
||||
relevance: number;
|
||||
language: string;
|
||||
top: ICompiledMode;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface IAutoHighlightResult extends IHighlightResult
|
||||
export interface IAutoHighlightResult extends IHighlightResultBase
|
||||
{
|
||||
second_best?: IAutoHighlightResult;
|
||||
}
|
||||
|
||||
export interface IHighlightResult extends IHighlightResultBase
|
||||
{
|
||||
top: ICompiledMode;
|
||||
}
|
||||
|
||||
export interface HLJSStatic
|
||||
{
|
||||
inherit(parent: Object, obj: Object): Object;
|
||||
|
||||
Reference in New Issue
Block a user