function generate_params_type(params, outdir, config) {
	/** @param {string} matcher */
	const path_to_matcher = (matcher) =>
		posixify(path.relative(outdir, path.join(config.kit.files.params, matcher + '.js')));

	return `{ ${params
		.map(
			(param) =>
				`${param.name}${param.optional ? '?' : ''}: ${
					param.matcher
						? `MatcherParam<typeof import('${path_to_matcher(param.matcher)}').match>`
						: 'string'
				}`
		)
		.join('; ')} }`;
}
@param {import('types').RouteParam[]} params
@param {string} outdir
@param {import('types').ValidatedConfig} config