Move api-extractor and tsconfig to shared folder
This commit is contained in:
Родитель
a86ef3267c
Коммит
85c1e4dbf4
|
@ -1,26 +1,3 @@
|
|||
{
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
||||
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts",
|
||||
"apiReport": {
|
||||
"enabled": true
|
||||
},
|
||||
"docModel": {
|
||||
"enabled": true,
|
||||
"apiJsonFilePath": "<projectFolder>/dist/<unscopedPackageName>.api.json"
|
||||
},
|
||||
"dtsRollup": {
|
||||
"enabled": true
|
||||
},
|
||||
"messages": {
|
||||
"extractorMessageReporting": {
|
||||
"ae-missing-release-tag": {
|
||||
"logLevel": "none"
|
||||
}
|
||||
},
|
||||
"tsdocMessageReporting": {
|
||||
"tsdoc-undefined-tag": {
|
||||
"logLevel": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ export interface IComposableType<
|
|||
props: TProps;
|
||||
|
||||
/**
|
||||
* slotProps, an object containing at least { root: IRootPropType }. The type of this object will dictate
|
||||
* slotProps, an object containing at least \{ root: IRootPropType \}. The type of this object will dictate
|
||||
* the slots on the component.
|
||||
*/
|
||||
slotProps: TSlotProps;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -0,0 +1,75 @@
|
|||
## API Report File for "@fluentui-react-native/interactive-hooks"
|
||||
|
||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||
|
||||
```ts
|
||||
|
||||
import { IViewProps } from '@fluentui-react-native/adapters';
|
||||
import { IViewWin32 } from '@office-iss/react-native-win32';
|
||||
import * as React from 'react';
|
||||
|
||||
// @public (undocumented)
|
||||
export type IFocusable = IViewWin32;
|
||||
|
||||
// @public (undocumented)
|
||||
export type IFocusState = {
|
||||
focused?: boolean;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export type IHoverState = {
|
||||
hovered?: boolean;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export type IPressableHooks<T extends object> = {
|
||||
props: IWithPressableOptions<T>;
|
||||
state: IPressableState;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export type IPressableOptions = {
|
||||
onStateChange?: (state: IPressableState) => void;
|
||||
disabled?: boolean;
|
||||
onPress?: () => void;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export type IPressableState = IPressState & IFocusState & IHoverState;
|
||||
|
||||
// @public (undocumented)
|
||||
export type IPressState = {
|
||||
pressed?: boolean;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export type IWithPressableOptions<T extends object> = T & IPressableOptions;
|
||||
|
||||
// @public (undocumented)
|
||||
export type onChangeCallback = (key: string) => void;
|
||||
|
||||
// @public (undocumented)
|
||||
export function useAsPressable(props: IWithPressableOptions<IViewProps>): IPressableHooks<IViewProps>;
|
||||
|
||||
// @public (undocumented)
|
||||
export function useAsRadioGroupSelection(defaultSelectedKey: string | null, userCallback?: onChangeCallback): {
|
||||
onChange: (key: string) => void;
|
||||
selectedKey: string;
|
||||
};
|
||||
|
||||
// @public
|
||||
export function useFocusState<TViewProps = IViewProps>(): [TViewProps, IFocusState];
|
||||
|
||||
// @public
|
||||
export function useHoverState<TViewProps = IViewProps>(): [TViewProps, IHoverState];
|
||||
|
||||
// @public
|
||||
export function usePressState<TViewProps extends object = IViewProps>(_props: IWithPressableOptions<TViewProps>): [TViewProps, IPressState];
|
||||
|
||||
// @public
|
||||
export function useViewCommandFocus(forwardRef: React.Ref<IViewWin32 | null> | undefined, initialValue?: React.Component): React.RefObject<React.Component>;
|
||||
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
|
||||
```
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"extends": "../../../api-extractor.json"
|
||||
"extends": "@uifabricshared/build-native/api-extractor.json"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
||||
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts",
|
||||
"apiReport": {
|
||||
"enabled": true
|
||||
},
|
||||
"docModel": {
|
||||
"enabled": true,
|
||||
"apiJsonFilePath": "<projectFolder>/dist/<unscopedPackageName>.api.json"
|
||||
},
|
||||
"dtsRollup": {
|
||||
"enabled": true
|
||||
},
|
||||
"messages": {
|
||||
"extractorMessageReporting": {
|
||||
"ae-missing-release-tag": {
|
||||
"logLevel": "none"
|
||||
}
|
||||
},
|
||||
"tsdocMessageReporting": {
|
||||
"tsdoc-undefined-tag": {
|
||||
"logLevel": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2015",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"strict": true,
|
||||
"strictBindCallApply": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strictNullChecks": false,
|
||||
"noImplicitAny": false,
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitThis": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"skipDefaultLibCheck": true,
|
||||
"sourceMap": true,
|
||||
"jsx": "react"
|
||||
}
|
||||
}
|
|
@ -1,23 +1,7 @@
|
|||
{
|
||||
"extends": "@uifabricshared/build-native/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"target": "es2015",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"strict": true,
|
||||
"strictBindCallApply": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strictNullChecks": false,
|
||||
"noImplicitAny": false,
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitThis": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"skipDefaultLibCheck": true,
|
||||
"sourceMap": true,
|
||||
"jsx": "react"
|
||||
}
|
||||
"outDir": "lib"
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче