Skip to content

Commit

Permalink
add jsdoc to performanceDbApi
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Jul 12, 2024
1 parent 7609f6e commit 8511c19
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions src/services/performanceDbApi.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,32 @@
/**
* Performance DB API service
*/
import datasette from './datasette.js'

/*
/**
* @typedef {object} Dataset
* @property {string} endpoint
* @property {?string} error
* @property {?string} issue
*/

*/
/**
* @typedef {object} LpaOverview
* @property {string} name
* @property {{ [dataset: string]: Dataset }} datasets
*/

/**
* Performance DB API service
* @export
* @default
*/
export default {
/**
* Get LPA overview
* @param {string} lpa - LPA ID
* @returns {Promise<LpaOverview>} LPA overview
*/
getLpaOverview: async (lpa) => {
const query = `
SELECT
Expand Down

0 comments on commit 8511c19

Please sign in to comment.