-
-
Notifications
You must be signed in to change notification settings - Fork 3
Export PageData, PageInfo, and param types from the package entry point #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 4 commits
98edb50
02c04ba
00a5d63
cd7d964
a25c413
5148412
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // @ts-check | ||
| import { test } from 'node:test' | ||
| import assert from 'node:assert' | ||
| import { PageData } from '../../index.js' | ||
|
|
||
| /** | ||
| * Smoke test that all public types are importable from the package entry point. | ||
| * The @typedef imports below are verified by TypeScript at compile time via `npm run test:tsc`. | ||
|
Check failure on line 8 in test-cases/type-exports/index.test.js
|
||
| * | ||
| * @typedef {import('../../index.js').PageInfo} PageInfo | ||
| * @typedef {import('../../index.js').TemplateInfo} TemplateInfo | ||
| * @typedef {import('../../index.js').LayoutFunctionParams} LayoutFunctionParams | ||
|
Check failure on line 12 in test-cases/type-exports/index.test.js
|
||
| * @typedef {import('../../index.js').GlobalDataFunctionParams} GlobalDataFunctionParams | ||
| * @typedef {import('../../index.js').PageFunctionParams} PageFunctionParams | ||
|
Check failure on line 14 in test-cases/type-exports/index.test.js
|
||
| * @typedef {import('../../index.js').TemplateFunctionParams} TemplateFunctionParams | ||
| */ | ||
|
|
||
| test('PageData is importable from the package entry point', () => { | ||
| assert.strictEqual(typeof PageData, 'function', 'PageData is a class') | ||
| }) | ||
Uh oh!
There was an error while loading. Please reload this page.