![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@types/post-robot
Advanced tools
TypeScript definitions for post-robot
npm install --save @types/post-robot
This package contains type definitions for post-robot (https://github.com/krakenjs/post-robot).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/post-robot.
// Type definitions for post-robot 10.0
// Project: https://github.com/krakenjs/post-robot
// Definitions by: NinoScript <https://github.com/NinoScript>
// Cijin <https://github.com/Cijin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Typescript Version: 3.0
// to shut off automatic exports
export {};
// Warning: This is not actually a Promise, but the interface is the same.
type ZalgoPromise<T> = Promise<T>;
// For the purposes of using the library on it's own Window is CrossDomain enough
type CrossDomainWindowType = Window | null;
type DomainMatcher = string | RegExp | string[];
type HandlerType = (event: {
source: CrossDomainWindowType,
origin: string,
data: any
}) => ZalgoPromise<any>;
type ErrorHandlerType = (err: any) => void;
interface ServerOptionsType {
handler?: HandlerType | undefined;
errorHandler?: ErrorHandlerType | undefined;
window?: CrossDomainWindowType | undefined;
name?: string | undefined;
domain?: DomainMatcher | undefined;
once?: boolean | undefined;
errorOnClose?: boolean | undefined;
}
interface CancelableType {
cancel: () => void;
}
// based on https://github.com/post-robot/src/public/on.js
export function on(name: string, options: ServerOptionsType | HandlerType, handler?: HandlerType): CancelableType;
export function once(
name: string,
options?: ServerOptionsType | HandlerType,
handler?: HandlerType,
): ZalgoPromise<{ source: any; origin: string; data: object }>;
interface RegularRequestOptionsType {
domain?: DomainMatcher | undefined;
fireAndForget?: false | undefined;
timeout?: number | undefined;
}
interface ResponseMessageEvent {
source: CrossDomainWindowType;
origin: string;
data: object;
}
interface FireAndForgetRequestOptionsType {
domain?: DomainMatcher | undefined;
fireAndForget?: true | undefined;
timeout?: number | undefined;
}
// based on https://github.com/post-robot/src/public/send.js
export function send(
win: CrossDomainWindowType,
name: string,
data?: object,
options?: FireAndForgetRequestOptionsType & RegularRequestOptionsType,
): ZalgoPromise<ResponseMessageEvent>;
These definitions were written by NinoScript, and Cijin.
FAQs
TypeScript definitions for post-robot
The npm package @types/post-robot receives a total of 0 weekly downloads. As such, @types/post-robot popularity was classified as not popular.
We found that @types/post-robot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.