@types/webpack-sources

  • Version 3.2.3
  • Published
  • 11.7 kB
  • 3 dependencies
  • MIT license

Install

npm i @types/webpack-sources
yarn add @types/webpack-sources
pnpm add @types/webpack-sources

Overview

TypeScript definitions for webpack-sources

Index

Interfaces

interface CachedData

interface CachedData {}

    property buffer

    buffer?: Buffer | undefined;

      property cachedData

      cachedData?: Map<any, any> | undefined;

        property size

        size?: number | undefined;

          property source

          source?: string | boolean | undefined;

            interface MapOptions

            interface MapOptions {}

              property columns

              columns?: boolean | undefined;
              • If set to false the implementation may omit mappings for columns true

              property module

              module?: boolean | undefined;
              • If set to false the implementation may omit inner mappings for modules. true

              interface Replacement

              interface Replacement {}

                property content

                readonly content: string;

                  property end

                  readonly end: number;

                    property insertIndex

                    readonly insertIndex: number;

                      property name

                      readonly name: string;

                        property start

                        readonly start: number;

                          interface SourceAndMapMixin

                          interface SourceAndMapMixin {}

                            method map

                            map: (options?: MapOptions) => RawSourceMap | null;
                            • Returns the SourceMap of the represented source code as JSON. May return null if no SourceMap is available.

                            method sourceAndMap

                            sourceAndMap: (options?: MapOptions) => SourceAndMapResult;
                            • Returns both, source code (like Source.prototype.source() and SourceMap (like Source.prototype.map()). This method could have better performance than calling source() and map() separately.

                            interface SourceAndMapResult

                            interface SourceAndMapResult {}

                              property map

                              map: RawSourceMap | null;

                                property source

                                source: string | Buffer;

                                  Type Aliases

                                  type SourceLike

                                  type SourceLike = Partial<
                                  Pick<
                                  Source,
                                  'source' | 'buffer' | 'size' | 'map' | 'sourceAndMap' | 'updateHash'
                                  >
                                  >;

                                    Package Files (2)

                                    Dependencies (3)

                                    Dev Dependencies (0)

                                    No dev dependencies.

                                    Peer Dependencies (0)

                                    No peer dependencies.

                                    Badge

                                    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/webpack-sources.

                                    • Markdown
                                      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/webpack-sources)
                                    • HTML
                                      <a href="https://www.jsdocs.io/package/@types/webpack-sources"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>