-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export Config type from tuf-js pkg (#433)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
- Loading branch information
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'tuf-js': minor | ||
--- | ||
|
||
Export `UpdaterOptions` and `Config` types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as tuf from '..'; | ||
|
||
it('exports classes', () => { | ||
expect(tuf.BaseFetcher).toBeInstanceOf(Function); | ||
expect(tuf.TargetFile).toBeInstanceOf(Function); | ||
expect(tuf.Updater).toBeInstanceOf(Function); | ||
}); | ||
|
||
it('exports types', () => { | ||
const config: Partial<tuf.Config> = {}; | ||
expect(config).toBeDefined(); | ||
|
||
const fetcher: Partial<tuf.Fetcher> = {}; | ||
expect(fetcher).toBeDefined(); | ||
|
||
const updaterOpts: Partial<tuf.UpdaterOptions> = {}; | ||
expect(updaterOpts).toBeDefined(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export { TargetFile } from '@tufjs/models'; | ||
export { BaseFetcher, Fetcher } from './fetcher'; | ||
export { Updater } from './updater'; | ||
export { Updater, UpdaterOptions } from './updater'; | ||
|
||
export type { Config } from './config'; |