Skip to content

Commit

Permalink
chore(types): types-index internal
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Sep 27, 2024
1 parent f32591c commit 21cc42c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/boot/test/bootstrapTests/ibcClientMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { heapVowE as E } from '@agoric/vow/vat.js';

/**
* @import {Connection, PortAllocator} from '@agoric/network';
* @import {FarRef, ERef} from '@agoric/vow';
* @import {FarRef} from '@agoric/internal';
* @import {ERef} from '@agoric/vow';
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/internal/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export * from './typeCheck.js';
export * from './typeGuards.js';

// eslint-disable-next-line import/export -- just types
export * from './types.js';
export * from './types-index.js';

export { objectMap } from '@endo/common/object-map.js';
export { objectMetaMap } from '@endo/common/object-meta-map.js';
Expand Down
1 change: 1 addition & 0 deletions packages/internal/src/types-index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './types.js';
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable max-classes-per-file */
import type { ERef, RemotableBrand } from '@endo/eventual-send';
import type { Primitive } from '@endo/pass-style';
import type { Pattern } from '@endo/patterns';
import type { Callable } from './utils.js';

/**
Expand All @@ -11,7 +12,7 @@ export type TotalMap<K, V> = Omit<Map<K, V>, 'get'> & {
/** Returns the element associated with the specified key in the TotalMap. */
get: (key: K) => V;
};
export type TotalMapFrom<M extends Map> =
export type TotalMapFrom<M extends Map<any, any>> =
M extends Map<infer K, infer V> ? TotalMap<K, V> : never;

export declare class Callback<I extends (...args: any[]) => any> {
Expand Down
3 changes: 0 additions & 3 deletions packages/vow/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ export { VowShape, toPassableCap } from './vow-utils.js';

// eslint-disable-next-line import/export
export * from './types-index.js';

// XXX re-exporting the Remote type for back-compat
export * from '@agoric/internal/src/types.js';
3 changes: 3 additions & 0 deletions packages/vow/src/types-index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// Export all the types this package provides
export * from './types.js';

// XXX re-exporting the Remote type for back-compat
export { Remote } from '@agoric/internal/src/types.js';

0 comments on commit 21cc42c

Please sign in to comment.