- Add type Definitions - Fix models methods - Sync controller add route names - Formularies sync OK - Closes https://lab.s-web.fr/ldc-web/projets/com-app-bo/-/issues/18 - Closes https://lab.s-web.fr/ldc-web/projets/com-app/-/issues/9
20 lines
637 B
JavaScript
20 lines
637 B
JavaScript
import { INIT_DOCUMENTS } from './actionType';
|
|
|
|
/**
|
|
* @typedef { {type: typeof INIT_DOCUMENTS, lang: string, directories: import('realm').Results<import('../../Models/Directory').Directory>, data: import('../../Models/Document').Document } } InitDocumentsAction
|
|
*/
|
|
|
|
/**
|
|
* Init contact
|
|
* @param {string} lang The lang
|
|
* @param {Realm.Results<import('../../Models/Directory').Directory>} directories Directories
|
|
* @param {import('../../Models/Document').Document} data The document data
|
|
*/
|
|
export const initDocuments = (lang, directories, data) => {
|
|
return {
|
|
type: INIT_DOCUMENTS,
|
|
lang,
|
|
directories,
|
|
data,
|
|
};
|
|
};
|