Skip to content

Commit

Permalink
update reference in code
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhaeberle committed Jul 29, 2024
1 parent 8a82cee commit 91c72c0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion inlang/source-code/sdk-v2/src/types/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export type Plugin2<
settingsSchema?: TObject
/**
* Import / Export files.
* see https://linear.app/opral/issue/MESDK-157/sdk-v2-release-on-sqlite
*/
toBeImportedFiles?: (args: {
settings: ProjectSettings2Type & ExternalSettings
Expand Down Expand Up @@ -85,11 +86,14 @@ export const Plugin2 = Type.Object({
displayName: Translatable(Type.String()),
description: Translatable(Type.String()),
/**
* Tyepbox is must be used to validate the Json Schema.
* Tyepbox must be used to validate the Json Schema.
* Github discussion to upvote a plain Json Schema validator and read the benefits of Typebox
* https://github.com/opral/monorepo/discussions/1503
*/
settingsSchema: Type.Optional(Type.Object({}, { additionalProperties: true })),
/**
* see https://linear.app/opral/issue/MESDK-157/sdk-v2-release-on-sqlite
*/
toBeImportedFiles: Type.Optional(
Type.Function(
[Type.Object({ settings: ExternalProjectSettings, nodeFs: Type.Any() })],
Expand Down Expand Up @@ -137,6 +141,10 @@ export type ResolvePlugins2Function = (args: {
* The API after resolving the plugins.
*/
export type ResolvedPlugin2Api = {
/**
* Importer / Exporter functions.
* see https://linear.app/opral/issue/MESDK-157/sdk-v2-release-on-sqlite
*/
toBeImportedFiles: Array<Plugin2["toBeImportedFiles"]>
importFiles: Array<Plugin2["importFiles"]>
exportFiles: Array<Plugin2["exportFiles"]>
Expand Down

0 comments on commit 91c72c0

Please sign in to comment.