Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@finsweet/ts-utils

finsweet2.4kISC0.40.0TypeScript support: included

Typescript utils for custom Webflow projects.

webflow, finsweet, no-code, typescript, utils

readme

Typescript Utils

Typescript utils for custom Webflow projects. This project contains different categories of utils that can be used in any project.

All utils are fully tree shakeable and strongly typed.

npm npm version NPM PRs Welcome dependencies

Installation

Npm

npm install @finsweet/ts-utils

Yarn

yard add @finsweet/ts-utils

Pnpm

pnpm install @finsweet/ts-utils

Documentation

To access the main documentation for this project, please visit https://finsweet.com/open-source/ts-utils/ to learn more about @finsweet/ts-utils.

changelog

@finsweet/ts-utils

0.40.0

Minor Changes

  • cf755c9: Added new LooseAutocomplete type

0.39.2

Patch Changes

  • 1e75299: improved type definition for Webflow.push() callbacks

0.39.1

Patch Changes

  • 005270c: update readme file to just include link to main ts-utils documentation page

0.39.0

Minor Changes

  • 213cd2f: add documentation with vitepress

0.38.0

Minor Changes

  • 5d5140d: feat: added optional page argument to getSiteId and getPublishDate.

0.37.3

Patch Changes

  • 59ac38c: docs: Added new README.md with detailed explanation of all utils

0.37.2

Patch Changes

  • d4b3fae: restartWebflow: Fixed slider modules restart to ensure they are always redrawed.

0.37.1

Patch Changes

  • 3a9fb7e: Added more instances type-guards

0.37.0

Minor Changes

  • a57b300: Created new typeguards/instances utils

0.36.0

Minor Changes

  • 0024923: Added primitive type guards

0.35.0

Minor Changes

  • 9465c47: - addListener(): Allow for null | undefined targets. If that's the case, no events will be added and the return callback will be a simple noop.
    • Created new noop() helper, it literally does nothing.

0.34.1

Patch Changes

  • 6cb3089: Improved type definitions for addListener() helper.

0.34.0

Minor Changes

  • c7a9310: Added new addListener() helper.