File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11import bases , { SupportedEncodings } from './util/bases.js'
22import { asUint8Array } from './util/as-uint8array.js'
33
4+ export type { SupportedEncodings }
5+
46/**
57 * Create a `Uint8Array` from the passed string
68 *
Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ export {
1313 toString ,
1414 xor
1515}
16+
17+ export type { SupportedEncodings } from './util/bases.js'
Original file line number Diff line number Diff line change 11import bases , { SupportedEncodings } from './util/bases.js'
22
3- /**
4- * @typedef {import('./util/bases').SupportedEncodings } SupportedEncodings
5- */
3+ export type { SupportedEncodings }
64
75/**
86 * Turns a `Uint8Array` into a string.
Original file line number Diff line number Diff line change 11/* eslint-env mocha */
22
33import { expect } from 'aegir/chai'
4- import { fromString } from '../src/from-string.js'
4+ import { fromString , SupportedEncodings } from '../src/from-string.js'
55import { toString } from '../src/to-string.js'
6- import bases , { SupportedEncodings } from '../src/util/bases.js'
6+ import bases from '../src/util/bases.js'
77
88const supportedBases = Object . keys ( bases ) as SupportedEncodings [ ]
99
You can’t perform that action at this time.
0 commit comments