From efbc2ffe6a1ee5ec38a4396305561d6515d0943e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 30 Aug 2024 17:21:18 +0800 Subject: node fixes, updates --- node_modules/swup/src/index.ts | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 node_modules/swup/src/index.ts (limited to 'node_modules/swup/src/index.ts') diff --git a/node_modules/swup/src/index.ts b/node_modules/swup/src/index.ts new file mode 100644 index 00000000..29fcee5b --- /dev/null +++ b/node_modules/swup/src/index.ts @@ -0,0 +1,58 @@ +import type { Path } from 'path-to-regexp'; +import type { DelegateEventUnsubscribe } from './helpers/delegateEvent.js'; +import type { DelegateEvent, DelegateEventHandler } from 'delegate-it'; +import Swup from './Swup.js'; +import type { Options } from './Swup.js'; +import type { CacheData } from './modules/Cache.js'; +import type { PageData } from './modules/fetchPage.js'; +import type { + Visit, + VisitFrom, + VisitTo, + VisitAnimation, + VisitScroll, + VisitHistory +} from './modules/Visit.js'; +import type { + HookName, + HookDefinitions, + HookArguments, + HookReturnValues, + HookHandler, + HookDefaultHandler, + HookOptions, + HookUnregister, + HookEvent +} from './modules/Hooks.js'; +import type { Plugin } from './modules/plugins.js'; + +export default Swup; +export * from './helpers.js'; +export * from './utils.js'; +export type { + Swup, + Options, + Plugin, + CacheData, + PageData, + Path, + Visit, + VisitFrom, + VisitTo, + VisitAnimation, + VisitScroll, + VisitHistory, + HookName, + HookDefinitions, + HookArguments, + HookReturnValues, + HookHandler, + HookHandler as Handler, // backwards compatibility + HookDefaultHandler, + HookOptions, + HookUnregister, + HookEvent, + DelegateEvent, + DelegateEventHandler, + DelegateEventUnsubscribe +}; -- cgit v1.2.3