
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@types/storybook__addon-info
Advanced tools
TypeScript definitions for @storybook/addon-info
npm install --save @types/storybook__addon-info
This package contains type definitions for @storybook/addon-info (https://github.com/storybookjs/storybook).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/storybook__addon-info.
import { DecoratorFunction, Parameters, StoryApi, StoryFn } from "@storybook/addons";
import { StoryContext } from "@storybook/csf/dist/story";
import { ComponentType, ReactElement } from "react";
export interface WrapStoryProps {
storyFn?: StoryFn | undefined;
context?: object | undefined;
options?: object | undefined;
}
export interface TableComponentOptionProps {
propDefinitions: Array<{
property: string;
propType: object | string; // TODO: info about what this object is...
required: boolean;
description: string;
defaultValue: any;
}>;
}
export interface Options {
text?: string | undefined;
header?: boolean | undefined;
inline?: boolean | undefined;
source?: boolean | undefined;
propTables?: Array<ComponentType<any>> | false | undefined;
propTablesExclude?: Array<ComponentType<any>> | undefined;
styles?: object | undefined;
components?: {
[key: string]: ComponentType<any>;
} | undefined;
/**
* @deprecated "marksyConf" option has been renamed to "components"
*/
marksyConf?: object | undefined;
maxPropsIntoLine?: number | undefined;
maxPropObjectKeys?: number | undefined;
maxPropArrayLength?: number | undefined;
maxPropStringLength?: number | undefined;
TableComponent?: ComponentType<TableComponentOptionProps> | undefined;
excludedPropTypes?: string[] | undefined;
}
export function withInfo<A = unknown>(
story: StoryFn<A>,
context: StoryContext<{ component: any; storyResult: A }>,
): ReturnType<DecoratorFunction<A>>;
// Legacy, but supported
/**
* @deprecated withInfo wrapper is deprecated, use the info parameter globally or on each story
*/
export function withInfo(
textOrOptions?: string | Options,
): (storyFn: StoryFn) => (context?: object) => ReactElement<WrapStoryProps>;
/**
* @deprecated setDefaults is deprecated. Instead, you can pass options into withInfo(options) directly, or use the info parameter.
*/
export function setDefaults(newDefaults: Options): Options;
declare module "@storybook/addons" {
interface ClientStoryApi<StoryFnReturnType = unknown> {
storiesOf(kind: string, module: NodeModule): StoryApi<StoryFnReturnType>;
addParameters(parameter: Parameters & { info: Options }): StoryApi<StoryFnReturnType>;
addDecorator(decorator: DecoratorFunction<StoryFnReturnType>): StoryApi<StoryFnReturnType>;
}
}
These definitions were written by Mark Kornblum, Mattias Wikstrom, and Kevin Lee.
FAQs
TypeScript definitions for @storybook/addon-info
The npm package @types/storybook__addon-info receives a total of 4,685 weekly downloads. As such, @types/storybook__addon-info popularity was classified as popular.
We found that @types/storybook__addon-info 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.