Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
webxdc-types
Advanced tools
When you develop a webxdc app, you use the webxdc API to communicate with other instances of the same webxdc application.
The API is available on window.webxdc
.
When you develop your webxdc app in TypeScript, it's handy to have proper types for this API. This library provides those types for you.
You can install this using:
npm install -D webxdc-types
You should have a type that describes your webxdc payload structure in use by your application:
type Payload = {
label: string;
value: number;
};
Once you have a Payload
type, you can declare the type of window.webxdc
in
your application:
import { WebXdc } from "webxdc-types";
declare global {
interface Window {
webxdc: WebXdc<Payload>;
}
}
Now window.webxdc
should be fully typed.
FAQs
TypeScript type definitions for webxdc
The npm package webxdc-types receives a total of 9 weekly downloads. As such, webxdc-types popularity was classified as not popular.
We found that webxdc-types demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.