npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tailor-platform/function-types

v0.10.2

Published

TypeScript types for Tailor Platform Function service

Readme

@tailor-platform/function-types

Deprecated. These types are now built into @tailor-platform/sdk, which exposes the same tailor.* / tailordb.* runtime surface plus typed wrappers you can import directly instead of relying on ambient globals. New projects should use @tailor-platform/sdk instead of this package; existing projects should migrate using the steps below.

This package will no longer receive updates for new runtime APIs, while @tailor-platform/sdk will keep gaining new runtime APIs.

Migrating to @tailor-platform/sdk

  1. Add @tailor-platform/sdk and remove this package:

    npm i -D @tailor-platform/sdk
    npm uninstall @tailor-platform/function-types

    If your project already depends on @tailor-platform/sdk (e.g. for tailor.config.ts, resolvers, or workflows), you can skip the install step.

  2. Update tsconfig.json to load the runtime globals from the SDK instead:

      {
        "compilerOptions": {
    -      "types": ["@tailor-platform/function-types"]
    +      "types": ["@tailor-platform/sdk/runtime/globals"]
        }
      }
  3. No other code changes are required. The global tailor.* and tailordb.* identifiers keep the same names and shapes (including the legacy capitalized Tailordb.Client, which @tailor-platform/sdk also keeps around for compatibility with this package).

Prefer typed imports over ambient globals (optional)

Instead of relying on the ambient tailor / tailordb globals, @tailor-platform/sdk/runtime exposes the same APIs as regular imports, which is easier to trace and doesn't require the tsconfig.json types change above:

import { iconv, secretmanager, idp, workflow, context, authconnection, aigateway, file } from "@tailor-platform/sdk/runtime";

const secret = await secretmanager.getSecret("my-vault", "API_KEY");
const gateway = await aigateway.get("my-aigateway");

Legacy usage (this package)

npm i -D @tailor-platform/function-types
{
  "compilerOptions": {
    "types": ["@tailor-platform/function-types"]
  }
}