0.4.2 • Published 12 months ago

@mincloudx/types v0.4.2

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

@mincloudx/types

Version TypeScript

Common TypeScript types in MinCloud.

Usage

pnpm install @mincloudx/types

# or use npm
npm install @mincloudx/types

When we need to import the corresponding types, we can do so through the import statement:

import type { FaaS } from '@mincloudx/types';

interface EventData {
  productId: string;
  name?: string;
}

export default async function userDefinedFunctionProxy(
  evt: FaaS.Event<EventData>,
) {
  const { productId, name = 'mincloudx' } = evt.data;

  return `${name}_${productId}`;
}
0.4.1

12 months ago

0.4.2

12 months ago

0.4.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago