Website | Get Started | Documentation | GitHub Discussions | Twitter | Support
![Superface](https://github.com/superfaceai/one-sdk/raw/main/docs/LogoGreen.png)
Superface OneSDK Map standard library
Types for development against the OneSDK map standard library.
Setup
To setup an environment for language support when developing tools:
npm install @superfaceai/map-std
To define a usecase define a new type in a TypeScript example.profile.ts
file:
type Example = Usecase<{
safety: 'safe'
input: {
id: AnyValue
}
result: { name: string }
error: { title: AnyValue, detail?: AnyValue }
}>;
Then develop a map with type support:
var Example = ({ input, parameters, services }) => {
return { name: "hardcoded example" }
}
For more examples see examples in OneSDK repository.
License
OneSDK is licensed under the MIT License.
© 2023 Superface s.r.o.