graceful icon indicating copy to clipboard operation
graceful copied to clipboard

No hideMeta options in constructor Graceful

Open lechuhuuha opened this issue 2 years ago • 0 comments

Describe the bug

Node.js version: v20.5.0

OS version: ubuntu 22.04

Description: There is no options for hideMeta when create new Graceful class????

Actual behavior

Object literal may only specify known properties, and 'hideMeta' does not exist in type 'GracefulOptions'.ts(2353)

Expected behavior

should be able to define hideMeta options in constructor

Code to reproduce

const graceful = new Graceful({
  logger: logger,
  servers: [server],
  customHandlers: [
    async () => {
      await mongoManager.disconnect();
      cronjobManager.stop();
      // this close all socket conneted to server and close server
      socketServer.close();
    },
  ],
  hideMeta : false,
});

Checklist

  • [x] I have searched through GitHub issues for similar issues.
  • [x] I have completely read through the README and documentation.
  • [x] I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.

lechuhuuha avatar Apr 26 '24 08:04 lechuhuuha