Skip to content

Commit

Permalink
Add command to papi core
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Dec 7, 2023
1 parent e8922f4 commit f50b983
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/papi-dts/papi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4878,6 +4878,6 @@ declare module '@papi/core' {
WebViewDefinition,
WebViewProps,
} from 'shared/models/web-view.model';
export type { Unsubscriber } from 'shared/utils/papi-util';
export type { Unsubscriber, UnsubscriberAsync } from 'shared/utils/papi-util';
export type { IWebViewProvider } from 'shared/models/web-view-provider.model';
}
2 changes: 1 addition & 1 deletion src/declarations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Files in this folder should only be `.ts` files that contain declarations of typ

For example, `papi-shared-types.ts` contains an interface that defines command handlers. Core and extensions both define and use each others' command handlers, so they both `declare module 'papi-shared-types'` and extend the `CommandHandlers` interface. That way, both core and extensions can use each others' command handler types.

All new type declaration names should start with `@papi` of `papi-` to inherit some ESLint rules that ignore unnecessary errors.
All new type declaration names should start with `@papi` or `papi-` to inherit some ESLint rules that ignore unnecessary errors.
2 changes: 1 addition & 1 deletion src/shared/services/papi-core.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ export type {
WebViewDefinition,
WebViewProps,
} from '@shared/models/web-view.model';
export type { Unsubscriber } from '@shared/utils/papi-util';
export type { Unsubscriber, UnsubscriberAsync } from '@shared/utils/papi-util';

export type { IWebViewProvider } from '@shared/models/web-view-provider.model';

0 comments on commit f50b983

Please sign in to comment.