mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added licence notice to many files, other minor type fixes
This commit is contained in:
parent
d9175c1fc2
commit
75d93af246
22 changed files with 483 additions and 107 deletions
|
@ -1,3 +1,23 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
|
||||
Question Server
|
||||
GitLab: <https://gitlab.com/MrFry/mrfrys-node-server>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
import express from 'express'
|
||||
import { SearchResultQuestion } from '../utils/classes'
|
||||
import type { Database } from 'better-sqlite3'
|
||||
|
@ -77,8 +97,8 @@ export interface Request<T = any> extends express.Request {
|
|||
body: T
|
||||
cookies: any
|
||||
session: any
|
||||
busboy: any
|
||||
files: any
|
||||
query: { [key: string]: string }
|
||||
}
|
||||
|
||||
export interface SubmoduleData {
|
||||
|
@ -112,8 +132,8 @@ export interface RegisteredUserEntry {
|
|||
installSource: string
|
||||
date: string
|
||||
userAgent: string
|
||||
uid: number
|
||||
loginDate: string
|
||||
loginDate?: string
|
||||
uid?: number
|
||||
}
|
||||
|
||||
export interface Submodule {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue