@openrewrite/types
Advanced tools
+2
-0
@@ -5,2 +5,4 @@ # Changelog | ||
| ### [0.0.12](https://github.com/openrewrite/typescript-types/compare/v0.0.11...v0.0.12) (2021-09-13) | ||
| ### [0.0.11](https://github.com/openrewrite/typescript-types/compare/v0.0.10...v0.0.11) (2021-09-13) | ||
@@ -7,0 +9,0 @@ |
@@ -125,5 +125,7 @@ export type Maybe<T> = T | null; | ||
| readonly languages: string[]; | ||
| readonly recipeList: RecipeListDescriptor[]; | ||
| readonly recipeList: RecipeListEntry[]; | ||
| } | ||
| export type RecipeListEntry = OpenRewrite.Recipe; | ||
| export interface RecipeListDescriptor<T = any> { | ||
@@ -139,3 +141,3 @@ readonly name: string; | ||
| export abstract class Recipe<Options = any> { | ||
| public recipeList: RecipeListDescriptor[] = []; | ||
| public recipeList: RecipeListEntry[] = []; | ||
| public options: RecipeOptions[] = []; | ||
@@ -165,7 +167,7 @@ | ||
| public getRecipeList(): RecipeListDescriptor[] { | ||
| public getRecipeList(): RecipeListEntry[] { | ||
| return this.recipeList; | ||
| } | ||
| public doNext<T>(recipe: RecipeListDescriptor<T>): Recipe { | ||
| public doNext<T>(recipe: RecipeListEntry): Recipe { | ||
| this.recipeList.push(recipe); | ||
@@ -172,0 +174,0 @@ return this; |
+1
-1
| { | ||
| "name": "@openrewrite/types", | ||
| "version": "0.0.11", | ||
| "version": "0.0.12", | ||
| "description": "Various Typescript types to aid in OpenRewrite recipe development", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
61434
0.22%1029
0.1%