File tree 4 files changed +7
-5
lines changed
4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
import bases , { SupportedEncodings } from './util/bases.js'
2
2
import { asUint8Array } from './util/as-uint8array.js'
3
3
4
+ export type { SupportedEncodings }
5
+
4
6
/**
5
7
* Create a `Uint8Array` from the passed string
6
8
*
Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ export {
13
13
toString ,
14
14
xor
15
15
}
16
+
17
+ export type { SupportedEncodings } from './util/bases.js'
Original file line number Diff line number Diff line change 1
1
import bases , { SupportedEncodings } from './util/bases.js'
2
2
3
- /**
4
- * @typedef {import('./util/bases').SupportedEncodings } SupportedEncodings
5
- */
3
+ export type { SupportedEncodings }
6
4
7
5
/**
8
6
* Turns a `Uint8Array` into a string.
Original file line number Diff line number Diff line change 1
1
/* eslint-env mocha */
2
2
3
3
import { expect } from 'aegir/chai'
4
- import { fromString } from '../src/from-string.js'
4
+ import { fromString , SupportedEncodings } from '../src/from-string.js'
5
5
import { toString } from '../src/to-string.js'
6
- import bases , { SupportedEncodings } from '../src/util/bases.js'
6
+ import bases from '../src/util/bases.js'
7
7
8
8
const supportedBases = Object . keys ( bases ) as SupportedEncodings [ ]
9
9
You can’t perform that action at this time.
0 commit comments