1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Converted models and services to TypeScript

This commit is contained in:
Laurent Cozic
2021-01-22 17:41:11 +00:00
parent c895f7cd4f
commit 86610e7561
237 changed files with 1568 additions and 1443 deletions

View File

@@ -1,8 +1,8 @@
import { State, stateUtils } from '../../reducer';
const BaseModel = require('../../BaseModel').default;
const Folder = require('../../models/Folder');
const MarkupToHtml = require('@joplin/renderer/MarkupToHtml').default;
import BaseModel from '../../BaseModel';
import Folder from '../../models/Folder';
import MarkupToHtml from '@joplin/renderer/MarkupToHtml';
export default function stateToWhenClauseContext(state: State) {
const noteId = state.selectedNoteIds.length === 1 ? state.selectedNoteIds[0] : null;