-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning from phantom comments #1
Comments
I am going to need a more working reproduction. Copying the code in that issue into a test file in this repo and running gives a ton of syntax errors. Fixing those in the most lazy way possible does not reproduce the issue: import { defineStore } from "pinia";
export const useConfigStore = defineStore("ConfigStore", {
state: () => ({
camera: {},
scene: {},
lights: {},
helpers: {},
}),
// > Getters
getters: {
/**
* Return the status to be saved in a project
*
* @param state - The store state
* @returns JSON formatted content of the store to be saved
*/
statusToSave(state: any) {
const statusToSave = {
camera: state.camera,
scene: state.scene,
lights: state.lights,
helpers: state.helpers,
};
return JSON.stringify(statusToSave);
},
/**
* Check if the camera is perspective
*
* @param state - The store state
* @returns True if the camera is set to perspective
*/
isPerspectiveCamera(state: any) {
return state.camera.type === "perspective";
},
},
}); |
Here is a minimal example: |
Here is the run script for Windows. Rename it to |
That doesn't seem to give me any warnings/errors. I unzipped it, then ran: npm i
npm i -D pinia # noticed it was missing
chmod +x makedoc.sh
dos2unix makedoc.sh
./makedoc.sh Which prints:
Versions:
|
Yes, my error was to create the bug reproduction in a subdirectory of my project. |
Even installing all packages from the big project does not cause the error. And I'm out of ideas about what can be inherited from the parent project. |
I transfer here the issue opened at TypeStrong/typedoc #2715 because this plugin should "Improves display of Vue defineComponent variables and Pinia stores in TypeDoc documentation."
Adding this plugin to typedoc gives the following warnings:
Without including this plugin, the warnings do not appear. Including it makes the warnings appear.
Thanks for looking!
The text was updated successfully, but these errors were encountered: