Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jspolicy/types

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jspolicy/types - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

11

lib/functions.d.ts
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;

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc