Release v28.0.0 (from 1e591f07)

This commit is contained in:
jenkins
2024-08-13 15:18:04 +00:00
parent 1cc3ce33a5
commit 91bc12f43d
1699 changed files with 7637 additions and 4315 deletions

View File

@@ -9,7 +9,7 @@ function extractField(data, field, arrayIndex) {
}
/**
* This class implements interaction with UDF-compatible datafeed.
* See [UDF protocol reference](@docs/connecting_data/UDF)
* See [UDF protocol reference](@docs/connecting_data/UDF.md)
*/
export class UDFCompatibleDatafeedBase {
constructor(datafeedURL, quotesProvider, requester, updateFrequency = 10 * 1000, limitedServerResponse) {

View File

@@ -7,7 +7,7 @@
"@rollup/plugin-node-resolve": "~9.0.0",
"rollup": "~2.28.2",
"rollup-plugin-terser": "~7.0.2",
"typescript": "5.3.2"
"typescript": "5.4.5"
},
"scripts": {
"compile": "tsc",

View File

@@ -9,6 +9,5 @@ export interface UdfQuotesResponse extends UdfOkResponse {
}
export interface IQuotesProvider {
// tslint:disable-next-line:variable-name tv-variable-name
getQuotes(symbols: string[]): Promise<QuoteData[]>;
}

View File

@@ -1,6 +1,6 @@
import {
DatafeedConfiguration,
ErrorCallback,
DatafeedErrorCallback,
GetMarksCallback,
HistoryCallback,
IDatafeedChartApi,
@@ -42,10 +42,8 @@ import { SymbolsStorage } from './symbols-storage';
import { IRequester } from './irequester';
export interface UdfCompatibleConfiguration extends DatafeedConfiguration {
// tslint:disable:tv-variable-name
supports_search?: boolean;
supports_group_request?: boolean;
// tslint:enable:tv-variable-name
}
export interface ResolveSymbolResponse extends LibrarySymbolInfo {
@@ -103,7 +101,7 @@ function extractField<T, TField extends keyof T>(data: T, field: TField, arrayIn
/**
* This class implements interaction with UDF-compatible datafeed.
* See [UDF protocol reference](@docs/connecting_data/UDF)
* See [UDF protocol reference](@docs/connecting_data/UDF.md)
*/
export class UDFCompatibleDatafeedBase implements IExternalDatafeed, IDatafeedQuotesApi, IDatafeedChartApi {
protected _configuration: UdfCompatibleConfiguration = defaultConfiguration();
@@ -300,7 +298,7 @@ export class UDFCompatibleDatafeedBase implements IExternalDatafeed, IDatafeedQu
}
}
public resolveSymbol(symbolName: string, onResolve: ResolveCallback, onError: ErrorCallback, extension?: SymbolResolveExtension): void {
public resolveSymbol(symbolName: string, onResolve: ResolveCallback, onError: DatafeedErrorCallback, extension?: SymbolResolveExtension): void {
logMessage('Resolve requested');
const currencyCode = extension && extension.currencyCode;
@@ -374,7 +372,7 @@ export class UDFCompatibleDatafeedBase implements IExternalDatafeed, IDatafeedQu
}
}
public getBars(symbolInfo: LibrarySymbolInfo, resolution: ResolutionString, periodParams: PeriodParamsWithOptionalCountback, onResult: HistoryCallback, onError: ErrorCallback): void {
public getBars(symbolInfo: LibrarySymbolInfo, resolution: ResolutionString, periodParams: PeriodParamsWithOptionalCountback, onResult: HistoryCallback, onError: DatafeedErrorCallback): void {
this._historyProvider.getBars(symbolInfo, resolution, periodParams)
.then((result: GetBarsResult) => {
onResult(result.bars, result.meta);