Skip to content
Snippets Groups Projects
Commit 2446334b authored by Alexander Rose's avatar Alexander Rose
Browse files

export schema database as type instead of interface

parent ac614ebd
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ const List = Schema.List;`
function footer (name: string) {
return `
export type ${name}_Schema = typeof ${name}_Schema;
export interface ${name}_Database extends Database<${name}_Schema> { }`
export type ${name}_Database = Database<${name}_Schema>`
}
const value: { [k: string]: (...args: any[]) => string } = {
......
......@@ -122,4 +122,4 @@ export const BIRD_Schema = {
}
export type BIRD_Schema = typeof BIRD_Schema;
export interface BIRD_Database extends Database<BIRD_Schema> { }
\ No newline at end of file
export type BIRD_Database = Database<BIRD_Schema>
\ No newline at end of file
......@@ -89,4 +89,4 @@ export const CCD_Schema = {
}
export type CCD_Schema = typeof CCD_Schema;
export interface CCD_Database extends Database<CCD_Schema> { }
\ No newline at end of file
export type CCD_Database = Database<CCD_Schema>
\ No newline at end of file
......@@ -72,4 +72,4 @@ export const CIFDictionary_Schema = {
}
export type CIFDictionary_Schema = typeof CIFDictionary_Schema;
export interface CIFDictionary_Database extends Database.Tables<CIFDictionary_Schema> { }
\ No newline at end of file
export type CIFDictionary_Database = Database.Tables<CIFDictionary_Schema>
\ No newline at end of file
......@@ -222,4 +222,4 @@ export const mmCIF_Schema = {
}
export type mmCIF_Schema = typeof mmCIF_Schema;
export interface mmCIF_Database extends Database<mmCIF_Schema> { }
\ No newline at end of file
export type mmCIF_Database = Database<mmCIF_Schema>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment