@openrewrite/types
Advanced tools
+7
-0
@@ -5,2 +5,9 @@ # Changelog | ||
| ### [0.0.17](https://github.com/openrewrite/typescript-types/compare/v0.0.16...v0.0.17) (2021-10-01) | ||
| ### Features | ||
| * add class CategoryDescriptor ([63c6e63](https://github.com/openrewrite/typescript-types/commit/63c6e63ba85447b376bfbb557126ce00791bc82e)) | ||
| ### [0.0.16](https://github.com/openrewrite/typescript-types/compare/v0.0.15...v0.0.16) (2021-09-29) | ||
@@ -7,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
| import { RecipeOptionsDescriptor } from './openrewrite'; | ||
| import { RecipeOptionsDescriptor, CategoryDescriptor } from './openrewrite'; | ||
| import 'reflect-metadata'; | ||
@@ -27,3 +27,3 @@ | ||
| public getName() { | ||
| return constructor.name; | ||
| return constructor.name; // TODO: this is not safe when minified; need to figure out different way | ||
| } | ||
@@ -30,0 +30,0 @@ |
+22
-0
| export type Maybe<T> = T | null; | ||
| export declare const Delegate: TreeVisitor<any, unknown>; | ||
| export interface Category { | ||
| displayName: string; | ||
| packageName: string; | ||
| description: string; | ||
| tags: string[]; | ||
| } | ||
| export class CategoryDescriptor implements Category { | ||
| displayName: string; | ||
| packageName: string; | ||
| description: string; | ||
| tags: string[]; | ||
| constructor(displayName: string, packageName: string, description: string, tags: string[]) { | ||
| this.displayName = displayName; | ||
| this.packageName = packageName; | ||
| this.description = description; | ||
| this.tags = tags; | ||
| }; | ||
| } | ||
| export class Cursor { | ||
@@ -5,0 +27,0 @@ private parent: Maybe<Cursor>; |
+1
-1
| { | ||
| "name": "@openrewrite/types", | ||
| "version": "0.0.16", | ||
| "version": "0.0.17", | ||
| "description": "Various Typescript types to aid in OpenRewrite recipe development", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
64285
1.33%1100
1.66%