lakutata 0.1.20 → 0.1.22

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.
Files changed (2) hide show
  1. package/Lakutata.d.ts +4 -2
  2. package/package.json +1 -1
package/Lakutata.d.ts CHANGED
@@ -6000,13 +6000,15 @@ declare function Configurable<T extends BaseObject>(options?: ConfigurableOption
6000
6000
  type TActionFunction = (inp?: any) => Promise<any>;
6001
6001
  type TExcludes<T, U> = T extends U ? never : T;
6002
6002
  type TActionName<T, U> = TExcludes<keyof T, U>;
6003
+ type ControllerTypedPropertyDescriptor = TypedPropertyDescriptor<TActionFunction>;
6004
+ type ControllerActionDecorator<T extends Controller> = (target: T, propertyKey: TActionName<T, keyof Controller | 'init' | '__init' | 'destroy' | '__destroy'>, descriptor: ControllerTypedPropertyDescriptor) => ControllerTypedPropertyDescriptor;
6003
6005
  /**
6004
6006
  * 控制器动作方法声明
6005
6007
  * @param pattern
6006
6008
  * @param authOptions
6007
6009
  * @constructor
6008
6010
  */
6009
- declare function Action<T extends Controller>(pattern: ActionPattern, authOptions?: ActionAuthOptions): (target: T, propertyKey: TActionName<T, keyof Controller | 'init' | '__init' | 'destroy' | '__destroy'>, descriptor: TypedPropertyDescriptor<TActionFunction>) => TypedPropertyDescriptor<TActionFunction>;
6011
+ declare function Action<T extends Controller>(pattern: ActionPattern, authOptions?: ActionAuthOptions): ControllerActionDecorator<T>;
6010
6012
 
6011
6013
  type Distance = 'mm' | 'cm' | 'm' | 'km' | 'in' | 'ft-us' | 'ft' | 'yd' | 'mi';
6012
6014
  type Area = 'mm2' | 'cm2' | 'm2' | 'ha' | 'km2' | 'in2' | 'ft2' | 'ac' | 'mi2';
@@ -7024,4 +7026,4 @@ declare global {
7024
7026
  }
7025
7027
  }
7026
7028
 
7027
- export { Accept, AccessControl, AccessControlConfigureRequiredException, AccessDenyException, Action, ActionAuthOptions, ActionPattern, AddRuleOptions, AliasExistsException, AliasNotFoundException, AlternativesSchema, Angle, AnySchema, ApparentPower, Application, ApplicationOptions, Area, ArraySchema, ArraySortOptions, ArrayUniqueOptions, AsymmetricDecryptException, AsymmetricEncryptException, AsymmetricSignException, AsymmetricVerifyException, AsyncFunction, AsyncValidationOptions, AuthStoreOptions, Base64Options, BaseObject, BaseValidationOptions, BaseValidator, BasicType, BinarySchema, BooleanSchema, Cache, CacheConfiguration, CacheProvisionOptions, ChildProcessUnavailableException, CoerceFunction, CoerceObject, CoerceResult, ComparatorFunction, CompileOptions, Component, Configurable, ConfigurableOptions, Container, Context, Controller, ControllerActionMapItem, ControllerAuthConfigItem, CreateErrorOptions, Cron, Current, CustomHelpers, CustomValidator, DTO, DataUriOptions, Database, DateSchema, DependencyInjectionException, DependencyOptions, Description, Digital, DispatchToControllerConfigurableParams, Distance, DomainOptions, DuplicateControllerActionPatternException, DynamicRegisterControllerNotAllowException, EmailOptions, Energy, ErrorFormattingOptions, ErrorReport, ErrorValidationOptions, Exception, Expect, Extension, ExtensionBoundSchema, ExtensionFlag, ExtensionRule, ExtensionTerm, ExtensionTermManifest, ExternalHelpers, ExternalValidationFunction, Formatter, Frequency, FunctionSchema, GetRuleOptions, GuidOptions, GuidVersions, HexOptions, HierarchySeparatorOptions, HttpRequest, HttpRequestAbortException, HttpRequestException, HttpRequestMethod, HttpRequestOptions, HttpResponseType, IAuthFileStoreOptions, IConstructor, ILogger, IPatRun, IPermission, ISortArrayOptions, ISortObjectOptions, IUser, IUserPermission, IllegalMethodCallException, IndexSignature, Inject, InjectApp, InjectModule, InjectionProperties, Interval, IntervalMode, InvalidAliasNameException, InvalidAsymmetricEncryptKeyPairException, InvalidAsymmetricEncryptPrivateKeyException, InvalidAsymmetricEncryptPublicKeyException, InvalidConfigurableValueException, InvalidDTOValueException, InvalidGlobStringException, InvalidMethodAcceptException, InvalidMethodReturnException, InvalidSymmetricCipherIVLengthException, InvalidSymmetricCipherKeyLengthException, InvalidValueException, IpOptions, IsNonPrimitiveSubsetUnion, IsPrimitiveSubset, IsSchemaOptions, IsUnion, LanguageMessageTemplate, LanguageMessages, Lifetime, LinkSchema, LoadComponentOptions, LoadEntryClassOptions, LoadEntryCommonOptions, LoadModuleOptions, Logger, Mass, MethodNotFoundException, MethodNotImplementedException, Model, ModifyOptions, Module, ModuleNotFoundException, ModuleOptions, MutateRegisterOptions, NoAsymmetricEncryptPrivateKeyException, NoAsymmetricEncryptPublicKeyException, NoAuthUserException, NoMatchedControllerActionPatternException, NotSupportCipherException, NotSupportHashException, NullableType, NumberSchema, ObjectPatternOptions, ObjectPropertiesSchema, ObjectSchema, Pace, PartialSchemaMap, PartsPer, Power, PresenceMode, Pressure, Process, ReactiveEnergy, ReactivePower, Reference, ReferenceOptions, RenameOptions, Return, RuleArgs, RuleMethod, RuleOptions, Schema, SchemaFunction, SchemaInternals, SchemaLike, SchemaLikeWithoutArray, SchemaMap, Scoped, SetFlagOptions, Singleton, Speed, State, StrictSchemaMap, StringRegexOptions, StringSchema, SwitchCases, SwitchDefault, SymbolSchema, SymmetricDecryptException, SymmetricEncryptException, Temperature, ThreadTask, Time, TimeInput, TimeObject, TopLevelDomainOptions, Transient, Types, UnitOfTime, UriOptions, ValidationError, ValidationErrorFunction, ValidationErrorItem, ValidationOptions, ValidationResult, ValidationWarning, Validator, Voltage, Volume, VolumeFlowRate, WhenOptions, WhenSchemaOptions };
7029
+ export { Accept, AccessControl, AccessControlConfigureRequiredException, AccessDenyException, Action, ActionAuthOptions, ActionPattern, AddRuleOptions, AliasExistsException, AliasNotFoundException, AlternativesSchema, Angle, AnySchema, ApparentPower, Application, ApplicationOptions, Area, ArraySchema, ArraySortOptions, ArrayUniqueOptions, AsymmetricDecryptException, AsymmetricEncryptException, AsymmetricSignException, AsymmetricVerifyException, AsyncFunction, AsyncValidationOptions, AuthStoreOptions, Base64Options, BaseObject, BaseValidationOptions, BaseValidator, BasicType, BinarySchema, BooleanSchema, Cache, CacheConfiguration, CacheProvisionOptions, ChildProcessUnavailableException, CoerceFunction, CoerceObject, CoerceResult, ComparatorFunction, CompileOptions, Component, Configurable, ConfigurableOptions, Container, Context, Controller, ControllerActionDecorator, ControllerActionMapItem, ControllerAuthConfigItem, ControllerTypedPropertyDescriptor, CreateErrorOptions, Cron, Current, CustomHelpers, CustomValidator, DTO, DataUriOptions, Database, DateSchema, DependencyInjectionException, DependencyOptions, Description, Digital, DispatchToControllerConfigurableParams, Distance, DomainOptions, DuplicateControllerActionPatternException, DynamicRegisterControllerNotAllowException, EmailOptions, Energy, ErrorFormattingOptions, ErrorReport, ErrorValidationOptions, Exception, Expect, Extension, ExtensionBoundSchema, ExtensionFlag, ExtensionRule, ExtensionTerm, ExtensionTermManifest, ExternalHelpers, ExternalValidationFunction, Formatter, Frequency, FunctionSchema, GetRuleOptions, GuidOptions, GuidVersions, HexOptions, HierarchySeparatorOptions, HttpRequest, HttpRequestAbortException, HttpRequestException, HttpRequestMethod, HttpRequestOptions, HttpResponseType, IAuthFileStoreOptions, IConstructor, ILogger, IPatRun, IPermission, ISortArrayOptions, ISortObjectOptions, IUser, IUserPermission, IllegalMethodCallException, IndexSignature, Inject, InjectApp, InjectModule, InjectionProperties, Interval, IntervalMode, InvalidAliasNameException, InvalidAsymmetricEncryptKeyPairException, InvalidAsymmetricEncryptPrivateKeyException, InvalidAsymmetricEncryptPublicKeyException, InvalidConfigurableValueException, InvalidDTOValueException, InvalidGlobStringException, InvalidMethodAcceptException, InvalidMethodReturnException, InvalidSymmetricCipherIVLengthException, InvalidSymmetricCipherKeyLengthException, InvalidValueException, IpOptions, IsNonPrimitiveSubsetUnion, IsPrimitiveSubset, IsSchemaOptions, IsUnion, LanguageMessageTemplate, LanguageMessages, Lifetime, LinkSchema, LoadComponentOptions, LoadEntryClassOptions, LoadEntryCommonOptions, LoadModuleOptions, Logger, Mass, MethodNotFoundException, MethodNotImplementedException, Model, ModifyOptions, Module, ModuleNotFoundException, ModuleOptions, MutateRegisterOptions, NoAsymmetricEncryptPrivateKeyException, NoAsymmetricEncryptPublicKeyException, NoAuthUserException, NoMatchedControllerActionPatternException, NotSupportCipherException, NotSupportHashException, NullableType, NumberSchema, ObjectPatternOptions, ObjectPropertiesSchema, ObjectSchema, Pace, PartialSchemaMap, PartsPer, Power, PresenceMode, Pressure, Process, ReactiveEnergy, ReactivePower, Reference, ReferenceOptions, RenameOptions, Return, RuleArgs, RuleMethod, RuleOptions, Schema, SchemaFunction, SchemaInternals, SchemaLike, SchemaLikeWithoutArray, SchemaMap, Scoped, SetFlagOptions, Singleton, Speed, State, StrictSchemaMap, StringRegexOptions, StringSchema, SwitchCases, SwitchDefault, SymbolSchema, SymmetricDecryptException, SymmetricEncryptException, Temperature, ThreadTask, Time, TimeInput, TimeObject, TopLevelDomainOptions, Transient, Types, UnitOfTime, UriOptions, ValidationError, ValidationErrorFunction, ValidationErrorItem, ValidationOptions, ValidationResult, ValidationWarning, Validator, Voltage, Volume, VolumeFlowRate, WhenOptions, WhenSchemaOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakutata",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "An IoC-based universal application framework.",
5
5
  "main": "./Lakutata.js",
6
6
  "types": "./Lakutata.d.ts",