mirror of
https://github.com/crypto-pro-web/crypto-pro-js.git
synced 2025-04-21 04:53:08 +03:00
Неверный тип возвращаемых данных getAlgorithm
This commit is contained in:
parent
c221132228
commit
5592bcd69b
@ -1,7 +1,7 @@
|
|||||||
import { ISSUER_TAGS_TRANSLATIONS, SUBJECT_TAGS_TRANSLATIONS } from '../../constants';
|
import { ISSUER_TAGS_TRANSLATIONS, SUBJECT_TAGS_TRANSLATIONS } from '../../constants';
|
||||||
import { TagTranslation } from '../../helpers/_parseCertInfo';
|
import { TagTranslation } from '../../helpers/_parseCertInfo';
|
||||||
import { exportBase64 } from './exportBase64';
|
import { exportBase64 } from './exportBase64';
|
||||||
import { getAlgorithm } from './getAlgorithm';
|
import { getAlgorithm, AlgorithmInfo } from './getAlgorithm';
|
||||||
import { getCadesProp } from './getCadesProp';
|
import { getCadesProp } from './getCadesProp';
|
||||||
import { getDecodedExtendedKeyUsage, ExtendedKeysTranslations } from './getDecodedExtendedKeyUsage';
|
import { getDecodedExtendedKeyUsage, ExtendedKeysTranslations } from './getDecodedExtendedKeyUsage';
|
||||||
import { getExtendedKeyUsage } from './getExtendedKeyUsage';
|
import { getExtendedKeyUsage } from './getExtendedKeyUsage';
|
||||||
@ -38,7 +38,7 @@ export class Certificate {
|
|||||||
return getDecodedExtendedKeyUsage.call(this);
|
return getDecodedExtendedKeyUsage.call(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getAlgorithm(): Promise<string> {
|
public getAlgorithm(): Promise<AlgorithmInfo> {
|
||||||
return getAlgorithm.call(this);
|
return getAlgorithm.call(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import { _extractMeaningfulErrorMessage } from '../../helpers/_extractMeaningful
|
|||||||
import { __cadesAsyncToken__, _generateCadesFn } from '../../helpers/_generateCadesFn';
|
import { __cadesAsyncToken__, _generateCadesFn } from '../../helpers/_generateCadesFn';
|
||||||
import { Certificate } from './certificate';
|
import { Certificate } from './certificate';
|
||||||
|
|
||||||
interface AlgorithmInfo {
|
export interface AlgorithmInfo {
|
||||||
algorithm: string;
|
algorithm: string;
|
||||||
oid: string;
|
oid: string;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user