Skip to content

Commit 2efec5b

Browse files
committed
fix: export missed types
1 parent 04acb15 commit 2efec5b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/cert/certificate.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getCrypto } from '../crypto';
22
import { SshPublicKey } from '../key/public_key';
33
import { AlgorithmRegistry } from '../registry';
44
import { SshSignature } from '../signature';
5-
import { SshObject } from '../types';
5+
import { SshCertificateType, SshObject } from '../types';
66
import {
77
parseCertificateData,
88
parse as parseWireCertificate,
@@ -12,8 +12,6 @@ import {
1212
} from '../wire/certificate';
1313
import { SshReader } from '../wire/reader';
1414

15-
export type SshCertificateType = 'user' | 'host';
16-
1715
export class SshCertificate extends SshObject {
1816
public static readonly TYPE = 'certificate';
1917
public readonly type = SshCertificate.TYPE;

src/cert/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export { SshCertificateBuilder } from './builder';
2-
export { SshCertificate, type SshCertificateType } from './certificate';
2+
export { SshCertificate } from './certificate';

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ export { SshSignature } from './signature';
2121

2222
// Unified SSH API
2323
export { SSH, type ImportOptions, type KeyPairResult, type SshType } from './ssh';
24+
25+
// Types
26+
export * from './types';

0 commit comments

Comments
 (0)