@jspolicy/types
Advanced tools
Comparing version 0.0.3 to 0.0.4
import { V1AdmissionRequest } from "./v1AdmissionRequest"; | ||
export interface ActionResult<T> { | ||
ok: boolean; | ||
reason?: string; | ||
message?: string; | ||
object?: T; | ||
} | ||
declare global { | ||
@@ -16,3 +22,8 @@ var request: V1AdmissionRequest; | ||
}): Array<T>; | ||
function create<T>(object: T): ActionResult<T>; | ||
function update<T>(object: T): ActionResult<T>; | ||
function remove<T>(object: T): ActionResult<T>; | ||
function requeue(message?: string): void; | ||
function print(...nums: any[]): void; | ||
function warn(message: string): void; | ||
function env(name: string): string; | ||
@@ -19,0 +30,0 @@ function sleep(milliseconds: number): void; |
{ | ||
"name": "@jspolicy/types", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Types needed to use typescript with jspolicy", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
import {V1AdmissionRequest} from "./v1AdmissionRequest"; | ||
export interface ActionResult<T> { | ||
ok: boolean | ||
reason?: string; | ||
message?: string; | ||
object?: T; | ||
} | ||
declare global { | ||
@@ -12,3 +20,8 @@ var request: V1AdmissionRequest; | ||
function list<T>(kind: string, apiVersion: string, options?: { cache?: 'smart' | boolean, labelSelector?: string, namespace?: string }): Array<T>; | ||
function create<T>(object: T): ActionResult<T>; | ||
function update<T>(object: T): ActionResult<T>; | ||
function remove<T>(object: T): ActionResult<T>; | ||
function requeue(message?: string): void; | ||
function print(...nums: any[]): void; | ||
function warn(message: string): void; | ||
function env(name: string): string; | ||
@@ -15,0 +28,0 @@ function sleep(milliseconds: number): void; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
121138
3196
0