conf icon indicating copy to clipboard operation
conf copied to clipboard

Private error in Typescript

Open formonkey opened this issue 3 years ago • 2 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/conf/dist/source/index.d.ts b/node_modules/conf/dist/source/index.d.ts
index 70d6dd0..966f6b8 100644
--- a/node_modules/conf/dist/source/index.d.ts
+++ b/node_modules/conf/dist/source/index.d.ts
@@ -2,7 +2,6 @@
 import { EventEmitter } from 'events';
 import { OnDidChangeCallback, Options, Unsubscribe, Schema, OnDidAnyChangeCallback } from './types';
 declare class Conf<T extends Record<string, any> = Record<string, unknown>> implements Iterable<[keyof T, T[keyof T]]> {
-    #private;
     readonly path: string;
     readonly events: EventEmitter;
     constructor(partialOptions?: Readonly<Partial<Options<T>>>);

This issue body was partially generated by patch-package.

formonkey avatar May 15 '21 17:05 formonkey

This problem for me too

limpassat avatar Oct 18 '21 15:10 limpassat