Skip to content

Commit

Permalink
refactor(preaction): rename type module
Browse files Browse the repository at this point in the history
  • Loading branch information
vnphanquang committed Jul 9, 2024
1 parent 9d271da commit 2192d5e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/strong-pigs-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@svelte-put/preaction': patch
---

rename type module to be more explicit

2 changes: 1 addition & 1 deletion packages/preaction/src/action.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Action, ActionReturn } from 'svelte/action';
import type { HTMLAttributes } from 'svelte/elements';

import { Preaction } from './public';
import { Preaction } from './types.public';

export function make<
Element = HTMLElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/preaction/src/action.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* See public typing in action.d.ts
* @template {import('./public').Preaction} Preaction
* @template {import('./types.public').Preaction} Preaction
* @param {Preaction} preaction
* @returns {Preaction}
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/preaction/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { preaction } from './preprocess.js';

export { preaction } from './preprocess.js';
export { make, apply } from './action.js';
export * from './public.js';
export * from './types.public.js';

export default preaction;

File renamed without changes.
File renamed without changes.

0 comments on commit 2192d5e

Please sign in to comment.