Skip to content

Commit

Permalink
Merge pull request #8046 from Agoric/ta/export-ts
Browse files Browse the repository at this point in the history
export inter-protocol types
  • Loading branch information
turadg authored Jul 17, 2023
2 parents 6e5b422 + 430568b commit e96a12a
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 81 deletions.
12 changes: 3 additions & 9 deletions packages/ERTP/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "./jsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"test/"
"extends": [
"./jsconfig.json",
"../../tsconfig-build-options.json"
]
}
12 changes: 3 additions & 9 deletions packages/casting/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "./jsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"test/"
"extends": [
"./jsconfig.json",
"../../tsconfig-build-options.json"
]
}
13 changes: 3 additions & 10 deletions packages/governance/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"extends": "./jsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"scripts",
"test/",
"extends": [
"./jsconfig.json",
"../../tsconfig-build-options.json"
]
}
6 changes: 6 additions & 0 deletions packages/inter-protocol/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"./jsconfig.json",
"../../tsconfig-build-options.json"
]
}
2 changes: 2 additions & 0 deletions packages/inter-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"build": "yarn build:bundles",
"build:bundles": "node ./scripts/build-bundles.js",
"build:add-STARS-proposal": "agoric run scripts/add-STARS.js",
"prepack": "tsc --build jsconfig.build.json",
"postpack": "git clean -f '*.d.ts*' src/types.js",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
15 changes: 8 additions & 7 deletions packages/inter-protocol/src/proposals/startPSM.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,14 @@ export const makeAnchorAsset = async (
}),
);

/** @type {{ creatorFacet: ERef<Mint<'nat'>>, publicFacet: ERef<Issuer<'nat'>> }} */
// @ts-expect-error cast
const { creatorFacet: mint, publicFacet: issuer } = await E(startUpgradable)({
installation: mintHolder,
label: keyword,
terms,
});
const { creatorFacet: mint, publicFacet: issuer } =
/** @type {{ creatorFacet: ERef<Mint<'nat'>>, publicFacet: ERef<Issuer<'nat'>> }} */ (
await E(startUpgradable)({
installation: mintHolder,
label: keyword,
terms,
})
);

const brand = await E(issuer).getBrand();
const kit = harden({ mint, issuer, brand });
Expand Down
12 changes: 3 additions & 9 deletions packages/internal/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "./jsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"test/"
"extends": [
"./jsconfig.json",
"../../tsconfig-build-options.json"
]
}
13 changes: 3 additions & 10 deletions packages/notifier/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"extends": "./jsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"scripts",
"test/",
"extends": [
"./jsconfig.json",
"../../tsconfig-build-options.json"
]
}
12 changes: 3 additions & 9 deletions packages/smart-wallet/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "./jsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"test/"
"extends": [
"./jsconfig.json",
"../../tsconfig-build-options.json"
]
}
12 changes: 3 additions & 9 deletions packages/vats/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "./jsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"test/"
"extends": [
"./jsconfig.json",
"../../tsconfig-build-options.json"
]
}
12 changes: 3 additions & 9 deletions packages/zoe/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "./jsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"test/"
"extends": [
"./jsconfig.json",
"../../tsconfig-build-options.json"
]
}
12 changes: 12 additions & 0 deletions tsconfig-build-options.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"**/scripts",
"**/test"
]
}

0 comments on commit e96a12a

Please sign in to comment.