sasat 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ import { DirectiveLocation } from "graphql";
2
+ declare type DirectiveArgs = {
3
+ name: string;
4
+ type: string;
5
+ default: any;
6
+ };
7
+ declare type Directive = {
8
+ types: DirectiveLocation[];
9
+ args: DirectiveArgs[];
10
+ name: string;
11
+ };
12
+ export declare const directiveToTypeDefs: (directive: Directive) => string;
13
+ export {};
@@ -0,0 +1,3 @@
1
+ export const directiveToTypeDefs = (directive) => {
2
+ return `directive @${directive.name}() on ${directive.types.join(' | ')}`;
3
+ };
@@ -1,7 +1,7 @@
1
1
  import { TsCode } from '../abstruct/tsCode.js';
2
2
  import { ExpressionStatement } from './expressionStatement.js';
3
3
  import { Parameter } from './parameter.js';
4
- import { tsValueString } from "../../tsValueString";
4
+ import { tsValueString } from "../../tsValueString.js";
5
5
  export class TsExpression extends TsCode {
6
6
  constructor() {
7
7
  super(...arguments);
@@ -1,7 +1,7 @@
1
1
  import { CodeGenerator, FileData } from '../generator.js';
2
2
  import { EntityNode } from '../../parser/node/entityNode.js';
3
3
  import { RepositoryNode } from '../../parser/node/repositoryNode.js';
4
- import { RootNode } from '../../parser/node/rootNode';
4
+ import { RootNode } from '../../parser/node/rootNode.js';
5
5
  export declare class TsCodeGenerator implements CodeGenerator {
6
6
  readonly fileExt = "ts";
7
7
  generateEntity(entity: EntityNode): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sasat",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "repository": "https://github.com/yanokunpei/sasat.git",
5
5
  "author": "yanokunpei <ninian138@gmail.com>",
6
6
  "license": "MIT",