New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/conf

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

@types/conf - npm Package Compare versions

Comparing version
2.1.0
to
3.0.0
+8
-24
conf/package.json
{
"name": "@types/conf",
"version": "2.1.0",
"description": "TypeScript definitions for conf",
"license": "MIT",
"contributors": [
{
"name": "Sam Verschueren",
"url": "https://github.com/SamVerschueren",
"githubUsername": "SamVerschueren"
},
{
"name": "BendingBender",
"url": "https://github.com/BendingBender",
"githubUsername": "BendingBender"
}
],
"version": "3.0.0",
"typings": null,
"description": "Stub TypeScript definitions entry for conf, which provides its own types definitions",
"main": "",
"types": "index",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"author": "",
"repository": "https://github.com/sindresorhus/conf",
"license": "MIT",
"dependencies": {
"@types/node": "*"
},
"typesPublisherContentHash": "6809efd3f6efcaaef1c33dd035cb1ec28d5fd54c4d42aa29b74be0d2d562f992",
"typeScriptVersion": "2.3"
"conf": "*"
}
}

@@ -1,16 +0,3 @@

# Installation
> `npm install --save @types/conf`
This is a stub types definition for conf (https://github.com/sindresorhus/conf).
# Summary
This package contains type definitions for conf (https://github.com/sindresorhus/conf).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/conf
Additional Details
* Last updated: Fri, 14 Dec 2018 00:15:14 GMT
* Dependencies: @types/node
* Global values: none
# Credits
These definitions were written by Sam Verschueren <https://github.com/SamVerschueren>, BendingBender <https://github.com/BendingBender>.
conf provides its own type definitions, so you don't need @types/conf installed!
// Type definitions for conf 2.1
// Project: https://github.com/sindresorhus/conf
// Definitions by: Sam Verschueren <https://github.com/SamVerschueren>
// BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="node" />
declare class Conf<T = any> implements Iterable<[string, T]> {
store: { [key: string]: T };
readonly path: string;
readonly size: number;
constructor(options?: Conf.Options<T>);
get(key: string, defaultValue?: T): T;
set(key: string, val: T): void;
set(object: { [key: string]: T }): void;
has(key: string): boolean;
delete(key: string): void;
clear(): void;
onDidChange(key: string, callback: (oldVal: T | undefined, newVal: T | undefined) => void): void;
[Symbol.iterator](): Iterator<[string, T]>;
}
declare namespace Conf {
interface Options<T> {
defaults?: { [key: string]: T };
configName?: string;
projectName?: string;
cwd?: string;
encryptionKey?: string | Buffer | NodeJS.TypedArray | DataView;
fileExtension?: string;
}
}
export = Conf;