Devographics / Monorepo

Monorepo containing the State of JS apps
surveyform-sigma.vercel.app
Other
125 stars 50 forks source link

surveyadmin typecheck issues #245

Closed SachaG closed 1 year ago

SachaG commented 1 year ago

We don't need to build surveyadmin so it's not a big deal, but I noticed a couple typecheck issues I wasn't sure how to fix.

eric-burel commented 1 year ago

@SachaG almost ok but I still have:

node_modules/@devographics/fetch/node_modules/@devographics/redis/node_modules/@devographics/helpers/env.ts:2:21 - error TS2307: Cannot find module './variables.yml' or its corresponding type declarations.

2 import config_ from './variables.yml'
                      ~~~~~~~~~~~~~~~~~

node_modules/@devographics/templates/templates/age.ts:2:29 - error TS2307: Cannot find module '../options.yml' or its corresponding type declarations.

2 import questionOptions from '../options.yml'
                              ~~~~~~~~~~~~~~~~

Also I couldn't find the right type for the "survey" in "convertSurveyToMarkdown", I need a survey/edition definition with thte outline and survey name. This generates a nice markdown explaining each question.

  let surveyString = "";
  surveyString += `# ${survey.name}\n\n`;
  survey?.outline?.forEach((section) => {

When we have normalized result for the state of css I'll try to recreate the export page, it's useful to get CSV data