Comments (1)
As this Plugin is not under heavy development i tried a little and made the following solution for me, for now:
Overriding the signale.d.ts types file by adding another with the following content:
import { WriteStream } from "fs";
import { SignaleOptions } from "signale";
declare namespace signale {
interface SignaleOptionsX extends Omit<SignaleOptions, 'stream'> {
stream?: NodeJS.Process.stdout | WriteStream | WriteStream[];
}
}
declare const SignaleOptionsX: signale.SignaleOptionsX;
export = signale;
In my class then import { SignaleOptionsX } from '../../types/signale';
and changing SignaleOptions
to SignaleOptionsX
.
Now
...
stream: [
process.stdout,
this.logFile
]
...
Works for me again. Formatting isnt nice, but at least i dont get an error by typescript.
from signale.
Related Issues (20)
- TypeScript Rewrite Fork
- Cut new release so that TypeScript types are published with the package HOT 2
- Conditional logging based on scope HOT 1
- HH:MM:SS doesn't work HOT 2
- nested objects HOT 2
- Project status? Doesn't seem maintained HOT 14
- TypeError: Cannot read property 'length' of undefined HOT 1
- Return line of log HOT 1
- Allow custom tagging or a custom context
- Snap availability HOT 2
- Indent is off in GitHub Actions logs
- support ES6 module HOT 3
- Doesn't loo like expected, at least inside clusters
- Doesn't look like expected, at least inside workers threads HOT 2
- Mark project as abandoned
- Recommend @klaussinani for GitHub Sponsor Matching Funds
- Ability to save as a log file HOT 4
- Reorder logging levels to reduce debug noise HOT 10
- Add the ability to enable/disable stack trace displaying HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signale.