Socket
Socket
Sign inDemoInstall

@statoscope/types

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@statoscope/types

Statoscope types


Version published
Weekly downloads
170K
increased by8.23%
Maintainers
1
Weekly downloads
 
Created

What is @statoscope/types?

@statoscope/types is a TypeScript definitions package for Statoscope, a tool for analyzing and visualizing webpack bundle statistics. It provides type definitions for various Statoscope data structures, making it easier to work with Statoscope's API in a type-safe manner.

What are @statoscope/types's main functionalities?

Type Definitions for Statoscope Reports

This feature provides type definitions for creating and manipulating Statoscope reports. The code sample demonstrates how to define a basic report object using the provided types.

import { Report } from '@statoscope/types';

const report: Report = {
  version: '1.0.0',
  name: 'My Report',
  data: [],
  sections: []
};
console.log(report);

Type Definitions for Statoscope Data

This feature provides type definitions for Statoscope data structures. The code sample shows how to define a simple data object using the provided types.

import { Data } from '@statoscope/types';

const data: Data = {
  name: 'My Data',
  value: 42
};
console.log(data);

Type Definitions for Statoscope Sections

This feature provides type definitions for Statoscope sections. The code sample demonstrates how to define a section object using the provided types.

import { Section } from '@statoscope/types';

const section: Section = {
  name: 'My Section',
  data: []
};
console.log(section);

Other packages similar to @statoscope/types

FAQs

Package last updated on 20 Oct 2023

Did you know?

Socket

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.

Install

Related posts

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