Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@based/functions

Package Overview
Dependencies
Maintainers
9
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/functions

To be used with based cloud functions, adds types and utilities.

latest
npmnpm
Version
3.4.27
Version published
Maintainers
9
Created
Source

@based/functions

To be used with based cloud functions, adds types and utilities.

  • Example based function
import { BasedFunction } from '@based/functions'

const submitVote: BasedFunction<
  { target: number },
  'ok' | 'not-ok'
> = async (based, { target }) => {
  if (target > 10) {
    return 'ok'
  }
  return 'not-ok'
}

export default submitVote

FAQs

Package last updated on 25 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts