pnotify icon indicating copy to clipboard operation
pnotify copied to clipboard

Fix typing of Stack for TypeScript 3.9.2

Open nechutny opened this issue 4 years ago • 2 comments

Hello, when using pnotify with project in typesciprt 3.9.2 I've got error

[at-loader] ./node_modules/@pnotify/core/Stack.d.ts:121:21 
    TS2709: Cannot use namespace 'Notice' as a type. 

[at-loader] ./node_modules/@pnotify/core/Stack.d.ts:130:20 
    TS2709: Cannot use namespace 'Notice' as a type. 

[at-loader] ./node_modules/@pnotify/core/Stack.d.ts:142:25 
    TS2709: Cannot use namespace 'Notice' as a type. 

[at-loader] ./node_modules/@pnotify/core/Stack.d.ts:149:14 
    TS2709: Cannot use namespace 'Notice' as a type. ```

So I've prepared fix for this - use proper typeof in Stack.d.ts

nechutny avatar Aug 04 '20 08:08 nechutny

these seem very useful, up.

irving-caamal avatar Nov 30 '20 16:11 irving-caamal

I'm experiencing this issue too. This fix would be greatly appreciated

SeanPlane-dev avatar Feb 17 '21 03:02 SeanPlane-dev