Skip to content

Commit

Permalink
add typscript stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MaHaWo committed Aug 26, 2024
1 parent 90c0e5e commit dba2aaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/stores/childrenData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const childrenlist: ChildrenList = {};

const childrenData = writable(childrenlist);

async function addChildrenData(data: ChildData, childtoken: string, usertoken: string) {
async function addChildData(data: ChildData, childtoken: string, usertoken: string) {
childrenData.update((childrenlist) => {
if (!(usertoken in childrenlist)) {
throw new Error(`User token ${usertoken} not found`);
Expand All @@ -34,7 +34,7 @@ async function addChildrenData(data: ChildData, childtoken: string, usertoken: s
});
}

async function removeChildrenData(childtoken: string, usertoken: string) {
async function removeChildData(childtoken: string, usertoken: string) {
childrenData.update((childrenlist) => {
if (!(usertoken in childrenlist)) {
throw new Error(`User token ${usertoken} not found`);
Expand All @@ -50,4 +50,4 @@ async function removeChildrenData(childtoken: string, usertoken: string) {
});
}

export { addChildrenData, childrenData, removeChildrenData };
export { addChildData, childrenData, removeChildData };
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { writable } from 'svelte/store';



let contentlist = {
childrenSurveys: {},
registrationForms: {}
Expand Down

0 comments on commit dba2aaf

Please sign in to comment.