chore: add index.d.ts to published harden package
MODIFY
packages/harden/index.d.ts
packages/harden/index.d.ts
export = harden;
-declare function harden<T>(root: T): harden.Hardened<T>;
+// FIXME: Would like to return harden.Hardened<T>, but that doesn't yet behave properly.
+declare function harden<T>(root: T): T;
declare namespace harden {
type Primitive = undefined | null | boolean | string | number;

MODIFY
packages/harden/package.json
packages/harden/package.json
{
"name": "@agoric/harden",
- "version": "0.0.4",
+ "version": "0.0.5",
"description": "Create a 'hardener' which freezes the API surface of a set of objects",
"author": "Agoric",
"license": "Apache-2.0",
"test": "test"
},
"files": [
- "dist"
+ "dist",
+ "index.d.ts"
],
"type": "module",
"main": "./src/main.js",

chore: add index.d.ts to published harden package (#258)