mirror of
https://github.com/LukeHagar/jsdoc-cheatsheet.git
synced 2025-12-06 12:37:48 +00:00
Integrate react-syntax-highlighter for improved code example rendering and enhance the JSDoc cheatsheet layout with a new navigation structure and quick reference section.
16 lines
427 B
TypeScript
16 lines
427 B
TypeScript
import { jsdocData } from '@/data/jsdoc-data'
|
|
import { restoredJSDocData } from '@/data/restored-jsdoc-data'
|
|
|
|
// Lazy load data for better performance
|
|
export const loadSectionData = async (sectionId: string) => {
|
|
return jsdocData[sectionId] || jsdocData.basic
|
|
}
|
|
|
|
// Preload critical data - use restored data for now
|
|
export const preloadCriticalData = async () => {
|
|
return {
|
|
...jsdocData,
|
|
...restoredJSDocData
|
|
}
|
|
}
|